bignumber.js icon indicating copy to clipboard operation
bignumber.js copied to clipboard

SUGGESTION: Append 0 before the decimal if the input is only a decimal instead of returning NAN

Open Hat52 opened this issue 1 year ago • 0 comments

I have faced this issue where when the user inputs a decimal as the input the BigNumber returns NAN. What I suggest is instead of returning NaN we can append 0 before the decimal. This can be an optional feature.

For example: Input is equal to. Currently we return NaN. Suggestion is we should return 0.

Hat52 avatar Sep 04 '24 19:09 Hat52