Merge pull request #154 from kruland2607/13.09dev

Fixed integer test value.  Thank goodness for unit tests.
This commit is contained in:
kruland2607 2013-10-09 12:53:35 -07:00
commit 8813f02ba0

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