Skip to content

Commit 68ed203

Browse files
committed
Fixed ToString() of Flow and Revolution to match other classes.
1 parent 7300f42 commit 68ed203

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Src/UnitsNet/Flow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public override int GetHashCode()
144144

145145
public override string ToString()
146146
{
147-
return CubicMeterPerSecond + " " + UnitSystem.Create(CultureInfo.CurrentCulture).GetDefaultAbbreviation(Unit.CubicMeterPerSecond);
147+
return string.Format("≈{0:0.##} {1}", CubicMeterPerSecond, UnitSystem.Create().GetDefaultAbbreviation(Unit.CubicMeterPerSecond));
148148
}
149149
}
150150
}

Src/UnitsNet/Revolution.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public override int GetHashCode()
144144

145145
public override string ToString()
146146
{
147-
return RevolutionsPerSecond + " " + UnitSystem.Create(CultureInfo.CurrentCulture).GetDefaultAbbreviation(Unit.RevolutionsPerSecond);
147+
return string.Format("≈{0:0.##} {1}", RevolutionsPerSecond, UnitSystem.Create().GetDefaultAbbreviation(Unit.RevolutionsPerSecond));
148148
}
149149
}
150150
}

0 commit comments

Comments
 (0)