+ 1

What is difference between float and double type variable?

22nd Feb 2017, 11:36 AM
Sanjay
Sanjay - avatar
6 Respostas
+ 5
"double" is a "float" with more precision
22nd Feb 2017, 1:05 PM
Александр Захаров
Александр Захаров - avatar
+ 3
Float is 4 bytes (1.4*10^-45 .. 3.4*10^38) Double is 8 bytes (4.9*10^-324 .. 1.8*10^308)
22nd Feb 2017, 12:41 PM
Димон Зелинский
Димон Зелинский - avatar
+ 2
*with double precision actually
22nd Feb 2017, 2:02 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
+ 1
double is the advanced version of float in short float+increased range=double...!!
23rd Feb 2017, 1:57 AM
Hoodwink
+ 1
the amount of storage space given to you under double is greater than than the storage amount offered by float that's the only difference....
24th Feb 2017, 7:56 AM
Sarvesh Sharma
Sarvesh Sharma - avatar
0
thanks for answer.
22nd Feb 2017, 5:46 PM
Sanjay
Sanjay - avatar