Subtracting small numbers
Posted on 2006-05-19
I think this is really simple and trivial.
I have a program with 10.0 as a double value.
I want to subtract 4e-12 from 10.
I am not sure how to do this. When I convert this number to decimal form and try subtracting it it also doesn't work. The number always remains 10.
I am guessing that I am loosing precision or something to this effect.
If anyone knows how to do this that would be extremely helpful.
Thanks a lot