Mysql calculation issues: 1+1=1.999999999
The problem is this, when I add two or more doubles from a table to a view, instead of giving me the right results, it adds a about ten or so more digits. For example 0.5+1.5=1.99999999998 or 5.5+8.5=14.0000000001. Any ideas? (I know this is sort of n00b question and I remember having to deal with stuff like that in the exams at 9th grade, but I just cannot remember how I did it back then :P) http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_format You can format numbers this way if thats what your after? Adding 1 and 1 as floats or doubles should not result in anything but