always use US locale for numbers to avoid "," separator

This commit is contained in:
Gregory.Shrago
2015-02-06 17:50:24 +03:00
parent 8a80b42735
commit 9c803b4ee0
@@ -1558,7 +1558,7 @@ public class StringUtil extends StringUtilRt {
sb.insert(0, units[i]).insert(0, count);
}
else if (remainder > 0) {
sb.append(String.format("%.2f", count + (double)remainder / multipliers[i - 1])).append(units[i]);
sb.append(String.format(Locale.US, "%.2f", count + (double)remainder / multipliers[i - 1])).append(units[i]);
}
return sb.toString();
}