|
-
Aug 6th, 2009, 07:51 PM
#1
[RESOLVED] what the - single not accurate?
Whats with this??
the result of:
CDbl(csng(35.8))
is:
35.799999237060547
Thanks Kris
-
Aug 6th, 2009, 08:37 PM
#2
Re: what the - single not accurate?
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.
-
Aug 6th, 2009, 09:08 PM
#3
Re: what the - single not accurate?
i thought this may be the case
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|