Float Literals : float « Data Type « C# / CSharp Tutorial






using System;

class MainClass
{
   static void Main()
   {
      Console.WriteLine("{0}", 3.1416F);     // float literal
   }
}
3.1416








2.25.float
2.25.1.Float Literals
2.25.2.Use Remainder Operator on float point data type
2.25.3.floats and arithmetic operators
2.25.4.Pass float to a function