IEEE floating point has a special zero value. See
http://stevehollasch.com/cgindex/coding/ieeefloat.html in the "Special
Values" section. You can compare against this value, and (a - a) =
0.0f. You do lose that precision when you introduce multiplication
and division...so you might end up with (
On Mon, Apr 11, 2005 at 12:47:22PM -0700, Daniel Remenak wrote:
> Changelog:
> Return DISP_E_DIVBYZERO instead of crashing when asked to divide a
> variant by zero.
You cannot really compare floats against 0 I think.
Ciao, Marcus