I need to put -3.402823e38 into a 2d 32bit float safearray, however vc7 converts this value to -3.402821e38 when I try to assign this value to a float??
WHY??
Printable View
I need to put -3.402823e38 into a 2d 32bit float safearray, however vc7 converts this value to -3.402821e38 when I try to assign this value to a float??
WHY??
Because it stores numbers as a binary decimal, not every number can necessarily be stored with perfect precision in that form.
You may want to use double, which is much more precise, because it uses 8bytes instead of 4.