|
-
May 8th, 2008, 03:42 PM
#1
Thread Starter
Junior Member
Rounding in Win98/2K vs. XP and Vista
I have a function that would round off to currency format:
CCur(Format(Text1.Text, "###,###,###,###.00"))
Now Windows XP and Vista will always round up, so 0.225 will return 0.23, and 0.235 will be 0.24.
However windows 98 and 2000, will round depending on whether the second last digit is odd or even, if its odd it rounds up, and if even it rounds down. So 0.225 will be 0.22 and 0.235 will be 0.24.
Any idea why this is happening, or better yet any thing from MS to get a consistency going. I really couldn't find any docs about this anywhere and just found it through trial and error after some discrepancies our customers have been coming across.
Thanks,
Luke
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
|