Home » java » Float Data Types

Float Data Types

Floating point value (example  11.23, 333.3330 etc. ) can be stored in data type float and double. Small floating value can be stored in float and large floating stored in double. 

TypeDefaultSize
float0.032 bits
double0.064 bits

Write a program to demonstrate use of float data types.

Output

Please follow and like us:
error