Created
September 12, 2015 15:01
-
-
Save angelovstanton/5f61f8ab1b367d09b372 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static unsafe void Main(string[] args) | |
{ | |
Console.WriteLine(1220.5.ToStringUsDigitsFormatting(DigitsFormattingSettings.PrefixDollar)); | |
// Result- $1,220.50 | |
Console.WriteLine(1220.5.ToStringUsDigitsFormatting(DigitsFormattingSettings.SufixDollar | DigitsFormattingSettings.NoComma)); | |
// Result- 1220.50$ | |
Console.WriteLine(1220.53645.ToStringUsDigitsFormatting(DigitsFormattingSettings.SufixDollar | DigitsFormattingSettings.NoComma | DigitsFormattingSettings.PrefixMinus, 4)); | |
// Result- -1220.5365$ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment