From 79c97696f40f0f8c3ee57d339ee61eb82d26abc1 Mon Sep 17 00:00:00 2001 From: ForeverZer0 Date: Tue, 31 Aug 2021 22:18:48 -0400 Subject: [PATCH] Changed string formatting of floating point numbers to always include decimal point --- SharpNBT/Tags/DoubleTag.cs | 2 +- SharpNBT/Tags/FloatTag.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SharpNBT/Tags/DoubleTag.cs b/SharpNBT/Tags/DoubleTag.cs index d9e1bfa..f745c66 100644 --- a/SharpNBT/Tags/DoubleTag.cs +++ b/SharpNBT/Tags/DoubleTag.cs @@ -29,7 +29,7 @@ namespace SharpNBT } /// - public override string ToString() => $"TAG_Double({PrettyName}): {Value}"; + public override string ToString() => $"TAG_Double({PrettyName}): {Value:0.0}"; /// /// Implicit conversion of this tag to a . diff --git a/SharpNBT/Tags/FloatTag.cs b/SharpNBT/Tags/FloatTag.cs index 23dc26a..a7025ea 100644 --- a/SharpNBT/Tags/FloatTag.cs +++ b/SharpNBT/Tags/FloatTag.cs @@ -28,7 +28,7 @@ namespace SharpNBT } /// - public override string ToString() => $"TAG_Float({PrettyName}): {Value}"; + public override string ToString() => $"TAG_Float({PrettyName}): {Value:0.0}"; /// /// Implicit conversion of this tag to a .