Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String.Format
Message
 
 
À
18/02/2013 14:27:31
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01566272
Message ID:
01566304
Vues:
46
>
>		static void Main()
>		{
>
>			decimal[] values = {
>								  -3.2m,
>								   0m, 
>								   3.2m
>							   };
>
>			foreach (decimal x in values)
>				Console.WriteLine("{0,20:$#,##0.00;$-#,##0.00}", x);			
>
>			
>			Console.ReadLine();
>
>		}
>
I don't understand why do you repeat multiple times different formats?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform