SimpleMaskMoney.format(0.1) returns `0.01`
See original GitHub issueIssue Description
Apparently any number smaller than 1 with 1 decimal place is returning a number divided by 10.
SimpleMaskMoney.format(0.1)
//=> "0,01"
SimpleMaskMoney.format(0.11)
//=> "0,11"
SimpleMaskMoney.format(0.9)
//=> "0,09"
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
simple-mask-money - npm
Start using simple-mask-money in your project by running `npm i ... This method return value of your input in format number to save...
Read more >Simple-mask-money NPM - npm.io
Check Simple-mask-money 3.0.1 package - Last release 3.0.1 with Apache-2.0 ... args); // This method return value of your input in format number...
Read more >Javascript input mask currency | Learn-codes.net
function formatNumber(n) { // format number 1000000 to 1,234,567 return ... Money(Currency) Mask Library In Vanilla JavaScript – SimpleMaskMoney.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This feature was included in the v3.0.0
@codermarcos @fnando I have found the same problem with a number more than 1.
SimpleMaskMoney.format(1.2)
//=> "0,12"