0

Please tell the exact difference between float and double

16th Apr 2016, 8:28 AM
Ammar Israr
Ammar Israr - avatar
5 Respostas
+ 9
Precision is the main difference where float is a single precision (32 bit) floating point data type, double is a double precision (64 bit) floating point data type.
19th May 2016, 2:12 PM
James Flanders
+ 1
There's difference in the size taken by them in memory area.
3rd May 2016, 6:15 PM
Ayushi Jaiswal
Ayushi Jaiswal - avatar
+ 1
Float numbers are stored in 32 bits, from which 23 bits are mantissa (the fractional part), 8 bits are the exponent (of base 2^x) and one bit is the sign. Double numbers are stored in 64 bits, in them mantissa has 52 bits, exponent has 11 bits and one sign bit. More mantissa bits equals more precision. Float numbers are precise to circa 7 digits. Double are precise to 15 digits, but require twice as much memory to use, and sometimes can be slower.
25th Oct 2016, 10:07 PM
Michał Isalski
Michał Isalski - avatar
0
size is the major difference
18th Jun 2016, 7:24 AM
Riddhi Sankaliya
Riddhi Sankaliya - avatar
0
Precision is the main difference where float is a single precision (32 bit) floating point data type, double is a double precision (64 bit) floating point data type and decimal is a 128-bit floating point data type. ... The main difference between each of these is the precision. loat - 7 digits (32 bit) Double-15-16 digits (64 bit) Decimal -28-29 significant digits (128 bit)
8th Aug 2018, 2:11 AM
deepak sharma
deepak sharma - avatar