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:
Ray Greenwell
2008-12-30 20:25:51 +00:00
parent 9f920ae527
commit c7612ecb7d
+2 -1
View File
@@ -154,7 +154,8 @@ public class StringUtil
}
// 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;
s = s.substring(0, s.length - 3);
}