Topic: rounded errors
Hi
Lots of reports and bits of code allow zero things to be filtered using (both in PHP and SQL) a ' something == 0'. However this doesn't always work due to rounding error (and float/double representation) .
There are two ways to fix that. The first (less intrusive) is to replace that by 'abs(something) <1e-6' (or equivalet). The other way would be to change in the database the types of columns from double to decimal. This would allow sql query to work but not the php one , as I guess decimal values would be converted to float in PHP.
/Elax
PS: I have started to the replacement in the reports where it 's bothering, and will happily shared it if needed.