You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 22, 2021. It is now read-only.
When used the number "1,990", the script generates "1,989".
That's why on the list generation of incremental numbers to display, when it calls the operation to preserve as int if input was int, it uses "parseInt": (row 54 : var newNum = Math.round(num / divisions * i);)
When used the number "1,990", the script generates "1,989".
That's why on the list generation of incremental numbers to display, when it calls the operation to preserve as int if input was int, it uses "parseInt": (row 54 : var newNum = Math.round(num / divisions * i);)
(1990 / 100 * 100) = 1989.9999999999998
parseInt(1990 / 100 * 100) = 1989
the script should use instead Math.round
Math.round(1990 / 100 * 100) = 1990
The text was updated successfully, but these errors were encountered: