We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20cdbff commit 80f40ccCopy full SHA for 80f40cc
UnitsNet/BaseDimensions.cs
@@ -182,13 +182,11 @@ public override string ToString()
182
183
private static void AppendDimensionString(StringBuilder sb, string name, int value)
184
{
185
- var absoluteValue = Math.Abs(value);
186
-
187
- if(absoluteValue > 0)
+ if (0 != value)
188
189
sb.AppendFormat("[{0}]", name);
190
191
- if(absoluteValue > 1)
+ if (1 != value)
192
sb.AppendFormat("^{0}", value);
193
}
194
0 commit comments