String to Decimal conversion...

  • Thread starter Thread starter nobody
  • Start date Start date
N

nobody

If I have a String with a formatted numeric value in it (might be
"$1,234.56", or "12.5%", etc...), how can I convert that to a Decimal? I
tried Convert.ToDecimal(...) and that had a panic-attack over the
formatting. :)
 
Also, the other way around. If I have a Decimal and a format string (like
"$#,##0.00", or "0.0%"), how can I format that Decimal into a String using
the format string?
 
Hi Nobody,

This is a general group, do you want to use a program language for it?

And than which one (probably you can get an answer here, but to know that
language would give us a better idea, this are things which are different in
C# and in VB.net)

:-)

Cor
 
Back
Top