String to Decimal conversion...

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. :)
 
N

nobody

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?
 
C

Cor

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top