We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0a1dde commit 664e867Copy full SHA for 664e867
Assets/Examples/DefaultNodes/Nodes/FloatToStringNode.cs
@@ -28,8 +28,7 @@ public string GetConversionOutput()
28
29
protected override void Process()
30
{
31
- var mult = Mathf.Pow(10, decimalPlaces);
32
- float val = Mathf.Round(input * mult) / mult;
+ output = input.ToString("F" + decimalPlace, CultureInfo.InvariantCulture);
33
output = val.ToString(CultureInfo.InvariantCulture);
34
}
35
-}
+}
0 commit comments