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:
agrath@gmail.com
2011-03-12 15:07:17 -13:00
parent 073053aa33
commit 44bfcaf373

View File

@@ -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;