C# number format code example
Example 1: c# string formatting
name = "Bob";
age = 27;
info = $"Your name is {name} and you are {age} years old";
Example 2: vb.net tostring numeric format string
decimal value = 123.456m;
Console.WriteLine("Your account balance is {0:C2}.", value);
// Displays "Your account balance is $123.46."