Change the in/64 length unit to not allow decimal representations by constructing it with an epsilon of 0.5/64.
This commit is contained in:
parent
473300fa11
commit
7cba979236
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user