Skip to content

Commit 595c18c

Browse files
committed
[CL] Fix mili precision - reported by @rogerawong
1 parent 3eaf471 commit 595c18c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MicroEngineerProject/MicroEngineer/Entries/BaseEntry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public virtual string UnitDisplay
156156
if (AltUnit != null && AltUnit.IsActive)
157157
return AltUnit.Unit;
158158

159-
if (d > 0.001 && d < 1) // mili
159+
if (d != 0 && Math.Abs(d) < 1) // mili
160160
{
161161
return this.MiliUnit ?? this.BaseUnit ?? "";
162162
}

0 commit comments

Comments
 (0)