Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to remove decimals from string
Message
De
20/04/2010 12:19:59
 
 
À
20/04/2010 12:01:50
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01461123
Message ID:
01461148
Vues:
38
>>>Using C#, how can I remove the decimals from a string? For example:
>>>
>>>"123.00" convert to "123"
>>>
>>>Thanks,
>>
"123.00".Substring(0,s.IndexOf("."))
?
>
>
>hmmmm

Wha? Didn't work for you ? :-}
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform