jeudi 9 février 2017

Write function for b

Vote count: 0

C# code for formatting a number with commas and decimal

 public class Program
{
    public static void Main(string[] args)
    {
       string Str = null;
        Str = string.Format("{0:N}", 9989.87);
Console.WriteLine(Str);
    }
}

desired output should be 9,989.87 but output is 9.989,87 Doesn't getting why it is giving this output.

asked 43 secs ago

Let's block ads! (Why?)



Write function for b

Aucun commentaire:

Enregistrer un commentaire