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
Thanks for the report. This bug seems to have been present from the beginning. 'Improper' is the right word.
To reassure other readers, this has no effect on the API or any normal usage of the library.
The bug adds an unwanted property named '-1' with value NaN to the coefficient array of a Big number returned by round when a Big number with a leading nine or nines is rounded up to a Big number which is a power of ten, such as 99.5 rounded up to 100. The unwanted property does not affect the length of the coefficent array or the Big number's value or any operations performed on it.
When rounding
Big('9.9')
, the resulting Big object will be:The index -1 of c is NaN.
The text was updated successfully, but these errors were encountered: