0

I saw a lot of strange behaviours handling float numbers, but I don't know why that one occurs and how to avoid it...

With PHP on Windows, dividing 1136 by 100 returns 11.359999999999999:

echo (1136 / 100); //11.359999999999999

Why is that?

mayersdesign
  • 5,062
  • 4
  • 35
  • 47
T'lash
  • 552
  • 1
  • 3
  • 15

0 Answers0