Fixed integer test value. Thank goodness for unit tests.
This commit is contained in:
parent
2a7cc37d25
commit
a601788dcd
@ -104,7 +104,7 @@ public abstract class Unit {
|
||||
|
||||
val = roundForDecimalFormat(val);
|
||||
// Check for approximate integer
|
||||
if (Math.abs(val - Math.floor(val)) < 0.001) {
|
||||
if (Math.abs(val - Math.floor(val)) < 0.0001) {
|
||||
return intFormat.format(val);
|
||||
}
|
||||
return decFormat.format(val);
|
||||
|
Loading…
x
Reference in New Issue
Block a user