Fixed integer test value. Thank goodness for unit tests.

This commit is contained in:
kruland2607 2013-10-09 14:52:36 -05:00
parent 2a7cc37d25
commit a601788dcd

View File

@ -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);