-
Notifications
You must be signed in to change notification settings - Fork 530
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
formatNumber does not support custom decimal? #129
Comments
@tofdragon If you want to use a different decimal value, use settings:
and then, when you do
Use the accouting.js file instead of the accounting.min.js |
@Lakshmi-Sharma Thank you for your advice I have to modify the source code to var formatNumber = lib.formatNumber = lib.format = function(number, precision, thousand, decimal) { The basic test is normal。But don't know how the author's intention, don't know is a bug, or the authors have other meanings |
@tofdragon If you change it in the settings, you shouldn't have to add it as a parameter. |
@Lakshmi-Sharma This is a global, in a page will have multiple influence each other |
source:
var formatNumber = lib.formatNumber = lib.format = function(number, precision, thousand, decimal) {
.......................
number = unformat(number);
.......................
}
Why don't unformat passing parameters to a decimal? unformat(number, decimal) ?
decimal Is not equal to . 。There will be a problem
The text was updated successfully, but these errors were encountered: