Whats with this??
the result of:
CDbl(csng(35.8))
is:
35.799999237060547
Thanks Kris
Printable View
Whats with this??
the result of:
CDbl(csng(35.8))
is:
35.799999237060547
Thanks Kris
That's the nature of floating-point numbers. Not all numbers can be represented in the space allocated to store the value and converting between types is one of the things that will highlight this. If you need absolute accuracy then you need to use the Decimal type, but it's bigger and slower.
i thought this may be the case
Thanks