I have a small financial application with PHP as the front end and MySQL as the back end. I have ancient prejudices, and I store money values in MySQL as an integer of cents
When converting from float to integer, the number will be rounded towards zero (src).
Read the Floating point precision warning.