Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

Floating-Point Literals
Floating point literals bassiclaly  a use fr the floating point are defined as number , decimal symbol, and more number representing the fraction.
       double d = 22312345.7224064;
          In this example , the no. 22312345.7224064, Thats the literal values.by default its defined as : double(64-bits)
and also variable of type : float (32 bits),
           And its must be attach the suffix F or f to the number . F suffix is bassically use for the compiler.
float M = 23.467890; // Compiler error, possible loss of precision
float n = 49837849.029847F; // OK; has the suffix "F"
           
Posted By: Name:Rajesh Kr URL: Floating-Point Literals