Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert string to decimal
Message
 
To
10/04/2007 14:47:20
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01214079
Message ID:
01214113
Views:
14
I reread your original posting:

In this case just use the same, divide by 100:
string namount = "400";
decimal myValue = decimal.Parse(nAmount)/100;
will provide myValue = 4.00.
The original provides a decimal value of 400.

>Thanks Richard, I do not want to display the decimal number.
>I need to insert it on a Foxpro table ( nAmount n(10,2) ).
>
>>decimal myValue = decimal.Parse(nAmount);
>
>So myValue will contain 4.00.
>
>Thanks,
>Sergio
State of Florida, DCF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform