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

Float separators break precision #10

Open
mcross1882 opened this issue Jul 29, 2015 · 1 comment
Open

Float separators break precision #10

mcross1882 opened this issue Jul 29, 2015 · 1 comment

Comments

@mcross1882
Copy link
Owner

If you use separators with a float value you end up with two commas. Below is a test that can be used to verify the bug. However if no width or precision are supplied the formatting appears to work correctly.

(function() {
    var parser = new NumberParser({decimalPoint: ',', separator: '.'});
    console.log(parser.parseValue(23456.789, "%.2sf"));
    console.log(parser.parseValue(23456.789, "%.3sf"));
    console.log(parser.parseValue(23456.789, "%10.2sf"));
})();
23.456..789
23.456..789
23.456..789
@mcross1882
Copy link
Owner Author

This issue has not received feedback in 4 days and is subject to automically closing if no activity occurs in the next 2 days. Either comment or apply the awaiting feedback label to prevent it from being closed.

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

No branches or pull requests

1 participant