A friend of mine said that they experienced oddities with using the decimal
column to store money formats such as saving 1000.00
which would result in it being stored as 999.99
.
However I just tested and 1000.00
is stored as 1000.0000
on decimal(19,4) / MySQL 5
. Can anyone offer insight into why they may have experienced issues? Perhaps it was an old MySQL bug, improper calculation on the application side before saving it to the database?
This is for an ROI
field and I'm storing money values which can be up in the thousands, FYI.