Floating point constants are defined by compiler. For instance, Visual Studio uses DBL_EPSILON for the smallest difference. Does Qt do a translation for the obvious compilers, or should we define our own constant file?
Thanks.
Floating point constants are defined by compiler. For instance, Visual Studio uses DBL_EPSILON for the smallest difference. Does Qt do a translation for the obvious compilers, or should we define our own constant file?
Thanks.
Hi, have a look at std::numeric_limits for a platform independent way to get those constants.
Ginsengelf
johnmauer (9th February 2010)
Thanks. I missed that for some reason. Talk about a blind spot. That's what I get for spending so much time with the same compiler.
Bookmarks