float point value literal: 3.281f and 5E-02 : float Point Number « Data Type « C# / CSharp Tutorial






using System;

class MainClass
{
  static void Main(string[] args)
  {
    float MyFloat = 3.281f;
    double MyDouble = 5E-02;
  }
}








2.22.float Point Number
2.22.1.Floating-Point Types
2.22.2.The Methods and Fields Supported by Single
2.22.3.The Methods and Fields Supported by Double
2.22.4.float point value literal: 3.281f and 5E-02
2.22.5.Floating point ranges
2.22.6.Unexpected Inequality Due to Floating-Point Inaccuracies