MySQL: 4.1.14 CF: version irrelevant I have recently found a bizarre situation where numbers are not calculating correctly when the values are stored in FLOAT data types.
The calculation was: 424/0.53 If you type this into any calculator or write it in an SQL query it always returns 800. However I had a DB query returning 800.000043185. After some trail and error I thought the cause may be caused by the way the values were stored in the DB i.e. the data types. I duped the column which stored the 0.53 but this time saved it as a DECIMAL (length 10 with 3 decimals) instead of a FLOAT. When I ran the query again (this time from the new column) hey presto it return 800. All I want to discuss here is why the float was doing this. Please advise DB experts. Thanks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240729 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

