Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Disclaimer: The creator of 'C# Shell (C# Offline Compiler)' is in no way responsible for the code posted by any user.
- using System;
- using System.IO;
- using System.Linq;
- using System.Collections.Generic;
- using System.Globalization;
- namespace CSharp_Shell
- {
- public static class Program
- {
- public static void Main()
- {
- double balance = 123.45;
- string message = $"us balance: {balance:C}";
- FormattableString message2 = $"us balance 2: {balance:C}";
- CultureInfo provider = new CultureInfo("en-US");
- Console.WriteLine(message.ToString(provider));
- Console.WriteLine(message2.ToString(provider));
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement