Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert string to decimal
Message
 
To
10/04/2007 14:23:57
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01214079
Message ID:
01214089
Views:
8
To convert (VB version is not too different):
decimal myValue = decimal.Parse(nAmount);
To Display (There is a multitude of ways to do this.):
Building on the above.
this.Sometextbox.Text = myValue.ToString("#,##.00");
HTH
Richard


>Hello UT,
>
>I have a string and I would like to convert it to decimal with 2 decimal places :
>Is there a class to do this?.
>
>
>string nAmount = "400";
>
>
>I would like to convert it to decimal: 4.00
>
>Thanks,
>Sergio
State of Florida, DCF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform