Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Format numeric with fixed length
Message
 
À
05/09/2007 13:27:10
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01252519
Message ID:
01252527
Vues:
10
you need to use the PadLeft string method

>Hi,
>How could I format numeric value to be fixed length string?
>For example, if I have value 1.00, 10.00 and 100.00, I want to output them in textfile/printer raw data as below
>
>
>    1.00
>   10.00
>  100.00
>
>Thank you
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform