Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String.Format
Message
From
18/02/2013 15:42:21
John Baird
Coatesville, Pennsylvania, United States
 
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:
01566315
Views:
56
>>
>>		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?


LMAO..... I think not....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform