floats and arithmetic operators : float « Data Type « C# / CSharp Tutorial






class MainClass
{

  public static void Main()
  {
    
    System.Console.WriteLine("10f / 3f = " + 10f / 3f);
    float floatValue1 = 10f;
    float floatValue2 = 3f;
    System.Console.WriteLine("floatValue1 / floatValue2 = " + floatValue1 / floatValue2);

  }
}
10f / 3f = 3.333333
floatValue1 / floatValue2 = 3.333333








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