Skip to content

Commit 57f4379

Browse files
committed
Fix mili precision.
1 parent 3eaf471 commit 57f4379

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)