C++

Objectives :

  • floatDataType1
  • A floating point constant is a double by default
  • A large floating point data is called a long double in ANSI C,
    • long double qualifier : float f1= 1.23L or 1.23l
    • OR : long double ld = 1.23L
       
  • A Floating point constant can be initiated with decimal notation or exponential notations.
    • decimal 1.23
    • exponential notation : 1.23e1= 12.3

Step: 1 Create a project

Step: 2 Create a source file

Step: 3 Edit Source code

Step: 4 Runtime View

Step: 5b