Added G9 specifier to FloatUtil.ToString to preserve exact values

This commit is contained in:
dexy 2022-01-11 16:45:02 +11:00
parent 0f92b25b7b
commit 8d257f6045

View File

@ -123,7 +123,7 @@ namespace CodeWalker
public static string ToString(float f) public static string ToString(float f)
{ {
var c = CultureInfo.InvariantCulture; var c = CultureInfo.InvariantCulture;
return f.ToString(c); return f.ToString("G9", c);
} }