Skip to main content
Solved

Script block, strange problem

  • Apr 13, 2021 9:27 AM UTC
  • 2 replies
  • 45 views

Titouan_Parand
Forum|alt.badge.img+6

Hello :slightly_smiling_face:

I would like to know if this behaviour is normal and how to fix it. Thank you

Best answer by Titouan_Parand

Explanation here : Floating point inaccuracy examples - Stack Overflow
Solution: Math.floor(33.27 * 100)

Can be closed

View original
This topic has been closed for replies.

2 replies

Titouan_Parand
Forum|alt.badge.img+6

Well, it seems to be a JS “problem”.


Titouan_Parand
Forum|alt.badge.img+6
  • Author
  • Inspiring
  • Answer
  • Apr 13, 2021 9:38 AM UTC

Explanation here : Floating point inaccuracy examples - Stack Overflow
Solution: Math.floor(33.27 * 100)

Can be closed