- 2

difference between float and double...

14th Aug 2016, 8:15 AM
Amandeep Singh
Amandeep Singh - avatar
5 Réponses
+ 2
Precision is the main difference where float is a single precision (32 bit) floating point datatype, double is a double precision (64 bit) floating point data type and decimal is a 128-bit floating point data type.
31st Jul 2017, 12:51 PM
Parmar Dhaval
Parmar Dhaval - avatar
+ 1
float takes less space and double takes more space
14th Aug 2016, 10:15 AM
Suhail Pappu
Suhail Pappu - avatar
+ 1
float accepts decimals upto 10 lac while double accepts above 10 lac.
5th Sep 2016, 8:02 AM
Anusha
0
float only accepts few digits after a decimal point....But double displays more number after the decimal point :)
15th Aug 2016, 12:40 PM
Vijaya Bharathy V R
Vijaya Bharathy V R - avatar
0
float is 4 bytes and double is 8 bytes in Java ..! So, float is used to store smaller number with precision compared to double
12th Sep 2016, 1:31 AM
Bindu M R
Bindu M R - avatar