Changed the decimal.TryParse code slightly to replace , with . before parse attempt
This is because strings like this: "2442,5453,5366" were incorrectly parsing to be "244254535366"
This commit is contained in:
@@ -331,7 +331,7 @@ namespace umbraco.MacroEngines
|
||||
|
||||
//decimal
|
||||
decimal dResult = 0;
|
||||
if (decimal.TryParse(string.Format("{0}", result), out dResult))
|
||||
if (decimal.TryParse(string.Format("{0}", result).Replace(",", "."), out dResult))
|
||||
{
|
||||
result = dResult;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user