Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"VMasker.toMoney( 156.10 )" Produces "15,61" #146

Open
rmanenti opened this issue Oct 29, 2019 · 0 comments
Open

"VMasker.toMoney( 156.10 )" Produces "15,61" #146

rmanenti opened this issue Oct 29, 2019 · 0 comments

Comments

@rmanenti
Copy link

Hi everyone,

Recently I have started using Vanilla-Masker and now I am facing a situation where the given value is not being correctly converted.

var value = 156.10;
var maskSettings = {
 precision  : 2,
 separator  : ',',
 delimiter  : '.',
 signed     : true
};

var result = VMasker.toMoney( value, maskSettings );

console.log( result ); // Returns 15,61

Could someone help me with this one?

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant