Loading...
Java

Floating Point Data Type

FloatDescription
If we want 5 to 6 decimal places then we use floatIf we want 14 to 15 decimal places then we use double
Size: 4 bytesSize: 8 bytes
Range: -3.4e38 to 3.4e38-1.7e308 to 1.7e308
float follows single precisiondouble follows double precision
Leave a Reply

Your email address will not be published. Required fields are marked *