From: kruland2607 Date: Tue, 22 May 2012 18:29:57 +0000 (+0000) Subject: Change the in/64 length unit to not allow decimal representations by constructing... X-Git-Tag: upstream/12.09^2~250 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=572661539efcb35aa651709623cfa21003a48790;p=debian%2Fopenrocket Change the in/64 length unit to not allow decimal representations by constructing it with an epsilon of 0.5/64. git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@702 180e2498-e6e9-4542-8430-84ac67f01cd8 --- diff --git a/core/src/net/sf/openrocket/unit/UnitGroup.java b/core/src/net/sf/openrocket/unit/UnitGroup.java index 301fe2c0..67140bad 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);