namespace Study // Note: actual namespace depends on the project name.
{
class Program
{
static void Main(string[] args)
{
// int
// float 실수형 3.14
// string
// bool
// [100]
float a;
// 4byte
a = 3.52323452352342342344234f;
double b;
// 8byte
b = 3.52323452352342342344234;
decimal c;
// 16byte
c = 3.52323452352342342344234;
Console.WriteLine();
}
}
}
a(float) 의 출력 결과 : 3.5232346
b(double)의 출력 결과 : 3.5232345235234233
c(decimal)의 출력 결과 : 3.52323452352342342344234