Assume that the value 3929.92 is of type ‘float’. How to assign this value after declaring the variable ‘interest’ of type float?

- interest = 3929.92
- interest = (Float)3929.92
- interest = 3929.92 (float)
- interest = 3929.92f

CORRECT ANSWER : interest = 3929.92f

Discussion Board

Thank you very much sir

Sudhir Dalvi 02-20-2015 11:16 AM

Float type

The float data type is a single-precision 32-bit floating point. It is used to save memory in large arrays of floating numbers. It is used as F or f in the end of the number. The floating type sometimes expressed using E or e which is a scientific notation. For example:

float f1 = 123.4f;

So as per the question on the correct answer is interest=3929.92f which represents that it is a float type.

Rohit Sharma 07-28-2014 02:02 AM

Write your comments


Enter the code shown above:
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)