using System;
class MainClass
{
static void Main()
{
double d = 012345.6789;
Console.WriteLine("{0:C}", d);
Console.WriteLine("{0:C2}", d);
Console.WriteLine("{0:C5}", d);
Console.WriteLine();
Console.WriteLine("{0:F}", d);
Console.WriteLine("{0:F2}", d);
Console.WriteLine("{0:F5}", d);
Console.WriteLine();
Console.WriteLine("{0:N}", d);
Console.WriteLine("{0:N2}", d);
Console.WriteLine("{0:N5}", d);
Console.WriteLine();
Console.WriteLine("{0:P}", d);
Console.WriteLine("{0:P2}", d);
Console.WriteLine("{0:P5}", d);
}
}
0 コメント:
コメントを投稿