Changed string formatting of floating point numbers to always include decimal point

This commit is contained in:
ForeverZer0 2021-08-31 22:18:48 -04:00
parent 92112ac887
commit 79c97696f4
2 changed files with 2 additions and 2 deletions

View File

@ -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"/>.

View File

@ -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"/>.