mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-26 08:52:52 +08:00
Added G9 specifier to FloatUtil.ToString to preserve exact values
This commit is contained in:
parent
0f92b25b7b
commit
8d257f6045
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user