C
Christopher Benson-Manica
How does one determine whether a double is equal to -0.0000...? Will
fabs() from math.h return 0.000... on -0.0000...?
fabs() from math.h return 0.000... on -0.0000...?
How does one determine whether a double is equal to -0.0000...?
Will
fabs() from math.h return 0.000... on -0.0000...?
Christopher said:How does one determine whether a double is equal to -0.0000...? Will
fabs() from math.h return 0.000... on -0.0000...?
Neil Kurzman said:One way would be:
if( (Number < 0) &&( Number > -0.00001))
Neil Kurzman said:One way would be:
if( (Number < 0) &&( Number > -0.00001))
You get to figure out how many zeros work for you
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.