Skip to content

Conversation

spidergears
Copy link

#113

Support grouping of number in 'Indian' and 'Arabic' system
Support custom groupSize as well

Defaults to Arabic i.e i groups of 3
accounting.formatNumber(676854399.95678567459, 3, ",", ".") => "676,854,399.957"

accounting.formatNumber(676854399.95678567459, 3, ",", ".", "Indian") => "67,68,54,399.957"
accounting.formatNumber(676854399.95678567459, 3, ",", ".", "Arabic") => "676,854,399.957"
Custom grouping
accounting.formatNumber(676854399.95678567459, 3, ",", ".", "4") => "6,7685,4399.957"
accounting.formatNumber(676854399.95678567459, 3, ",", ".", 4) => "6,7685,4399.957"

Support grouping of number in 'Indian' and 'Arabic' system
Support custom groupSize as well
josemaar pushed a commit to josemaar/accounting.js that referenced this pull request Aug 2, 2017
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

Successfully merging this pull request may close these issues.

1 participant