To Money Format - CSharp System

CSharp examples for System:Math Number

Description

To Money Format

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;/*from   ww  w  . j a v  a 2s .c  om*/

public class Main{
        public static string ToMoneyFormat(double number)
        {
            return string.Format("{0:N}", number);
        }
}

Related Tutorials