Skip to content

Commit

Permalink
Should fix issue #24: money_format wrongly formatting hundreds of tho…
Browse files Browse the repository at this point in the history
…usands
  • Loading branch information
kukawski committed Dec 8, 2011
1 parent 155a7d0 commit 47d821c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/strings/money_format.js
Expand Up @@ -86,7 +86,7 @@ function money_format (format, number) {
if (mon_grouping[0] < integer.length) {
for (var i = 0, idx = integer.length; i < mon_grouping.length; i++) {
idx -= mon_grouping[i]; // e.g., 3
if (idx < 0) {
if (idx <= 0) {
break;
}
if (filler && idx < fillnum) {
Expand Down

0 comments on commit 47d821c

Please sign in to comment.