I am having problems converting a string to decimal values with a decimal key. This is the line of code I have:
fixPrice = decimal.Parse(mItemParts.Groups["price"].Value.Replace("$", "").Replace(" ", "").Replace("usd", ""));
The value I'm trying to convert from is: '$ 779.99'
Then, as soon as the parsing happens to a decimal number, I get this value: 77999.
I want to get 779.99 instead of 77999. Thanks in advance, Laziale
Regex included: "@" \ [^ \ "] +?) \" "[^ ~] +? \] +? Src = \" "(? [^ \"] +?) \ ""? [^>] + name = \ "?" (? [^ \ ""]? +) \ "" [^ ~] + price \ ""> (? [^ \ <]? +) \ <? [^ ~] + \ (? [^ \ <]? +) \
source
share