[ODE] What is the ODE approach to denormals?

GARY VANSICKLE g.r.vansickle at worldnet.att.net
Mon Apr 26 22:19:12 MST 2004


> I dare you to show me one machine except for the playstation series
> where "float" does not have 8 bits of exponent, and "double" does
> not have 11 bits of exponent. Actually, playstation has floats, but
> not denormals as we know them, so it's even more important to avoid
> them.
> 
> I'm fine with using a #define for the constants that I hard-coded
> here, but the names become quite confusing. Something like:
> 
> dRealDenormalEpsilon  // this is about the smallest representable
>                       // number that won't go denormal
> dRealDenormalEpsilonSqrt  // this is about the smallest number
>                           // which won't go denormal when squared
> 
> There are no standard header values that you can use,

Actually there is:

numeric_limits<float>::min( )
numeric_limits<double>::min( )

...etc.




More information about the ODE mailing list