I have a web app we are building; one aspect involves rounding.
The database has several field that are float, format 5,2.
If the value going in on an INSERT or UPDATE is .125, it rounds to .13. If I use the php round function it gives (to 2 places) .12 (on the SAME value).
I'm a math major but I can't remember the math rule; been too many years.
This implies that rounding is done differently in php & MySQL.
Is that true?