mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-24 16:23:03 +08:00
Added G9 specifier to FloatUtil.ToString to preserve exact values
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user