|
-
May 7th, 2008, 10:52 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Double variables
Hi people.
I might have to do some more debugging on my code but... based on some tests, I'm having strange behabiours with "doubles".
I thought that this might be a general known "issue" and someone would bring up the main causes of that.
My problem is that if I do simple calculations, I end up with a trailing decimal at the 10th position of so.
Exemple: 27.8 - 27.7 will sometimes equal "0.100000000001"
I cound fix my problem my doing round(var,3), but this is just "patching", I don't like it quite much
any idea?
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
|