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 048a7adCopy full SHA for 048a7ad
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 (value != 0)
188
189
sb.AppendFormat("[{0}]", name);
190
191
- if(absoluteValue > 1)
+ if (value != 1)
192
sb.AppendFormat("^{0}", value);
193
}
194
0 commit comments