B
BA
Hello,
I have a string with a price in: "$14.95"
I need to get it into a decimal.
So I regex 'd the string and dumped the $. Debug mon shows a clean string
"14.95"
Then I do a System.Convert.ToDecimal on the clean string and the output
becomes: 1495
What gives!? I've tried a variety of workarounds but nothing works. How
can I format it for 2 decimal places or perform the convert in a way I am
not aware of?
Thanks alot!
I have a string with a price in: "$14.95"
I need to get it into a decimal.
So I regex 'd the string and dumped the $. Debug mon shows a clean string
"14.95"
Then I do a System.Convert.ToDecimal on the clean string and the output
becomes: 1495
What gives!? I've tried a variety of workarounds but nothing works. How
can I format it for 2 decimal places or perform the convert in a way I am
not aware of?
Thanks alot!