Float
using System;
public class TestFloat
{
static void Main(String[] args)
{
float f1 = 123.00000f, f2 = 124.00000f;/* float declaration.We cannot declare it as
float f1=123.00000 because the default type of a number with decimal is double.It is 4 bytes*/
float f3 = f1 + f2;
Console.WriteLine("Float value= " + f3);
Console.ReadLine();
}
}
Output:
Float value= 247