mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
always use US locale for numbers to avoid "," separator
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user