Use either System.Convert. ToDecimal or decimal.Parse method. Make sure that
the decimal separator for the current culture is the same as the one you're
trying to parse - otherwise you might get a FormatException (parse method)
or an unpredicted result in some cases.
Here is the example with the Parse method :
string s = "123.45";
NumberFormatInf o nfi = new NumberFormatInf o();
nfi.CurrencyDec imalSeparator = ".";
decimal dec = decimal.Parse(s , nfi);
Hope that helps,
Branimir
--
Branimir Giurov
MCSD.NET, MCDBA
"Will" <an*******@disc ussions.microso ft.com> wrote in message
news:9A******** *************** ***********@mic rosoft.com...
Thanks in advance.