Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to remove decimals from string
Message
De
20/04/2010 13:16:45
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
20/04/2010 11:42:09
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01461123
Message ID:
01461153
Vues:
44
Thank you, this works well.



>>Using C#, how can I remove the decimals from a string? For example:
>>
>>"123.00" convert to "123"
>>
>>Thanks,
>>
>>Jerry
>
>
>
>			string s = "123.00";
>			string q = s.Split('.')[0];
>			Console.WriteLine("{0}", q);
>			Console.ReadLine();
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform