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
Give you a stable value that loses precision.
console.log(numeral("8.14%").value());
// Return value: 0.08140000000000001
It seems that numeral does not have a very good solution to the problem of loss of JS computing accuracy.
Could you tell me how to deal with this bad situation?
The text was updated successfully, but these errors were encountered:
For example, the following code:
Give you a stable value that loses precision.
console.log(numeral("8.14%").value());
// Return value: 0.08140000000000001
It seems that numeral does not have a very good solution to the problem of loss of JS computing accuracy.
Could you tell me how to deal with this bad situation?
The text was updated successfully, but these errors were encountered: