Skip to content

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

@Hat52

Description

@Hat52

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions