Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String.Format
Message
 
 
To
18/02/2013 14:27:31
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01566272
Message ID:
01566304
Views:
48
>
>		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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform