From 7cba979236d3383f2a8e082edc31e82b17c4566c Mon Sep 17 00:00:00 2001 From: Kevin Ruland Date: Tue, 22 May 2012 18:29:57 +0000 Subject: [PATCH] Change the in/64 length unit to not allow decimal representations by constructing it with an epsilon of 0.5/64. --- core/src/net/sf/openrocket/unit/UnitGroup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/net/sf/openrocket/unit/UnitGroup.java b/core/src/net/sf/openrocket/unit/UnitGroup.java index 301fe2c08..67140bad1 100644 --- a/core/src/net/sf/openrocket/unit/UnitGroup.java +++ b/core/src/net/sf/openrocket/unit/UnitGroup.java @@ -85,7 +85,7 @@ public class UnitGroup { UNITS_LENGTH.addUnit(new GeneralUnit(0.01, "cm")); UNITS_LENGTH.addUnit(new GeneralUnit(1, "m")); UNITS_LENGTH.addUnit(new GeneralUnit(0.0254, "in")); - UNITS_LENGTH.addUnit(new FractionalUnit(0.0254, "in/64", "in", 64, 1d/16d)); + UNITS_LENGTH.addUnit(new FractionalUnit(0.0254, "in/64", "in", 64, 1d/16d, 0.5d/64d)); UNITS_LENGTH.addUnit(new GeneralUnit(0.3048, "ft")); UNITS_LENGTH.setDefaultUnit(1);