|
-
Sep 9th, 2008, 07:39 AM
#5
Re: Number Precision: How to explain?
@szlamany, I understand what you say, but as you see:
v=d is always TRUE. I think v was converted to Double before compared with d? Look at the digits of v and d. Hard to explain.
w=v can be vary as seen: FALSE (my case) or TRUE (your case). But all digits of w match with those of v.
In your case, with v=d and w=v, that implies d=w: Both d and w are Double and look at the values of d and w. How to explain?
The picture will be clearer if someone can explain how these numbers are stored in memory bit-by-bit and how they are compared in v=d and w=v.
Edit: @si, forget about c as it is a Decimal.
Last edited by anhn; Sep 9th, 2008 at 07:44 AM.
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
|