Apply Jamie's fix for negative numbers here on the actionscript side, too.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5607 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -154,7 +154,8 @@ public class StringUtil
|
|||||||
}
|
}
|
||||||
|
|
||||||
// hackily add commas
|
// hackily add commas
|
||||||
while (s.length > 3) {
|
var prefixLength :int = (n < 0) ? 1 : 0;
|
||||||
|
while (s.length - prefixLength > 3) {
|
||||||
postfix = "," + s.substring(s.length - 3) + postfix;
|
postfix = "," + s.substring(s.length - 3) + postfix;
|
||||||
s = s.substring(0, s.length - 3);
|
s = s.substring(0, s.length - 3);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user