1

I have a function that receives a value amount, that is a float number. This number is multiplied by 100 to be converted to a whole number, before it is saved into the database. Dumping the variable after the multiplication shows that its value is 6699. When saving the number to the db (in an int column) it is saved as 6688 though! What can be wrong

mrateb
  • 2,317
  • 5
  • 27
  • 56

0 Answers0