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

Commit

Permalink
Fix parsing values
Browse files Browse the repository at this point in the history
(cherry picked from commit 3239b1f)
  • Loading branch information
mafiesto4 committed Sep 4, 2019
1 parent e9db510 commit b22aeae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FlaxEditor/Utilities/ShuntingYardParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;

Expand Down Expand Up @@ -258,7 +259,7 @@ public static double EvaluateRPN(IEnumerable<Token> tokens)
{
if (token.Type == TokenType.Number)
{
stack.Push(double.Parse(token.Value));
stack.Push(double.Parse(token.Value, NumberStyles.Float | NumberStyles.AllowThousands, CultureInfo.InvariantCulture));
}
else if (token.Type == TokenType.Variable)
{
Expand Down

0 comments on commit b22aeae

Please sign in to comment.