Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert string to decimal
Message
 
À
10/04/2007 14:47:20
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01214079
Message ID:
01214113
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform