From 8d257f604504f84be5a4647520c3de11d1e3fc04 Mon Sep 17 00:00:00 2001 From: dexy Date: Tue, 11 Jan 2022 16:45:02 +1100 Subject: [PATCH] Added G9 specifier to FloatUtil.ToString to preserve exact values --- CodeWalker.Core/Utils/Utils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodeWalker.Core/Utils/Utils.cs b/CodeWalker.Core/Utils/Utils.cs index 296aa26..9cb5cff 100644 --- a/CodeWalker.Core/Utils/Utils.cs +++ b/CodeWalker.Core/Utils/Utils.cs @@ -123,7 +123,7 @@ namespace CodeWalker public static string ToString(float f) { var c = CultureInfo.InvariantCulture; - return f.ToString(c); + return f.ToString("G9", c); }