assisrafael / assisrafael/angular-input-masks

For a large numbers the parser function in Number.js is causing it to round to very huge different value.

Open
#158 1 comment 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
JavaScript
Stars
955
Forks
329
PR merge metrics
No merged PRs in 30d

Description

To be detail when a large number is entered in to the input field like 9,223,372,036,854,775,295.99 the model value is being rounded in a way it is very different number from what a actual input is and this is because of the parseFloat in parser function in Number.js.
Im talking about this line below without the parseFloat the modelValue is correct but with that it will effect for large input values like above.
"var actualNumber = parseFloat(modelMask.apply(valueToFormat));"
##

Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/30591951-for-a-large-numbers-the-parser-function-in-number-js-is-causing-it-to-round-to-very-huge-different-value?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.