Navigate to Post

Tuesday, March 31, 2020

Learn C#~#1 Digit Separator

It’s very difficult to read a very large number.To overcome this problem, C# 7 comes with a new feature called digit separators “_”. Now, it is possible to use one or more Underscore (_) character as digit separators. Sometimes, it is required when we are going to represent a very big number.


using System;

namespace MyTestConsole
    class Program
        static void Main(string[] args)
            double biggerNumber = 89_2_89_420_840__888.78;
            Console.WriteLine("biggerNumber : {0}", biggerNumber);



All time trending post