Skip to content

Support for number grouping - #127

Open
spidergears wants to merge 3 commits into
openexchangerates:masterfrom
joshsoftware:indian_numbering_support
Open

Support for number grouping#127
spidergears wants to merge 3 commits into
openexchangerates:masterfrom
joshsoftware:indian_numbering_support

Conversation

@spidergears

Copy link
Copy Markdown

#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