Skip to content
This repository was archived by the owner on Dec 24, 2020. It is now read-only.

Commit b22aeae

Browse files
committed
Fix parsing values
(cherry picked from commit 3239b1f)
1 parent e9db510 commit b22aeae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FlaxEditor/Utilities/ShuntingYardParser.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
using System;
44
using System.Collections.Generic;
5+
using System.Globalization;
56
using System.Linq;
67
using System.Text;
78

@@ -258,7 +259,7 @@ public static double EvaluateRPN(IEnumerable<Token> tokens)
258259
{
259260
if (token.Type == TokenType.Number)
260261
{
261-
stack.Push(double.Parse(token.Value));
262+
stack.Push(double.Parse(token.Value, NumberStyles.Float | NumberStyles.AllowThousands, CultureInfo.InvariantCulture));
262263
}
263264
else if (token.Type == TokenType.Variable)
264265
{

0 commit comments

Comments
 (0)