Changed string formatting of floating point numbers to always include decimal point
This commit is contained in:
parent
92112ac887
commit
79c97696f4
|
@ -29,7 +29,7 @@ namespace SharpNBT
|
|||
}
|
||||
|
||||
/// <inheritdoc cref="object.ToString"/>
|
||||
public override string ToString() => $"TAG_Double({PrettyName}): {Value}";
|
||||
public override string ToString() => $"TAG_Double({PrettyName}): {Value:0.0}";
|
||||
|
||||
/// <summary>
|
||||
/// Implicit conversion of this tag to a <see cref="double"/>.
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace SharpNBT
|
|||
}
|
||||
|
||||
/// <inheritdoc cref="object.ToString"/>
|
||||
public override string ToString() => $"TAG_Float({PrettyName}): {Value}";
|
||||
public override string ToString() => $"TAG_Float({PrettyName}): {Value:0.0}";
|
||||
|
||||
/// <summary>
|
||||
/// Implicit conversion of this tag to a <see cref="float"/>.
|
||||
|
|
Loading…
Reference in New Issue