affixed ROOT locale, should fix #151
This commit is contained in:
1 parent
72a7bed11a
commit
2968f77ed0
4 files changed
+8
-7
No files matched your search
@@ -4,6 +4,7 @@ import carpet.script.exception.InternalExpressionException;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Locale;
|
||||
|
||||
import static java.lang.Math.abs;
|
||||
|
||||
@@ -42,7 +43,7 @@ public class NumericValue extends Value
|
||||
}
|
||||
else
|
||||
{
|
||||
return String.format("%.1f..", getDouble());
|
||||
return String.format(Locale.ROOT, "%.1f..", getDouble());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user