[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
Re: [RESOLVED] Double variables
Yes I've been told this a couple of times. The thing is I don't care much about spams getting to THAT hotmail. And I like it when people pops in my live messenger for some coding chat.