Skip to content

Commit b1a2f14

Browse files
committed
♻️ QuantityValue.ToString(): Specify default culture
1 parent 7398448 commit b1a2f14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnitsNet/QuantityValue.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ public int CompareTo(object obj)
270270
public override string ToString()
271271
=> Type switch
272272
{
273-
UnderlyingDataType.Decimal => _decimalValue.ToString(),
274-
UnderlyingDataType.Double => _doubleValue.ToString(),
273+
UnderlyingDataType.Decimal => _decimalValue.ToString(CultureInfo.CurrentCulture),
274+
UnderlyingDataType.Double => _doubleValue.ToString(CultureInfo.CurrentCulture),
275275
_ => throw new NotImplementedException()
276276
};
277277

0 commit comments

Comments
 (0)