Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating Blank if zero decimal format string
Message
From
30/08/2008 15:51:48
 
 
To
30/08/2008 12:55:06
General information
Forum:
ASP.NET
Category:
Common Language Runtime
Miscellaneous
Thread ID:
01343549
Message ID:
01343569
Views:
22
For example
Console.WriteLine((123.4m).ToString("0.00;-0.00; ")); //123.40
Console.WriteLine((-123.4m).ToString("0.00;-0.00; ")); //-123.40
Console.WriteLine((0m).ToString("0.00;-0.00; ")); //

Notice a space at the end of format string
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform