What is the double float? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What is the double float?

floa

10th Nov 2019, 10:19 AM
Ixtiyor Kabulov
3 Answers
+ 9
Float is used to store decimal numbers with single precision.Float consume 4 bytes in storage. While double is used to store decimal numbers with double precision. Double consume 8 bytes in storage.
10th Nov 2019, 10:25 AM
Rohitman
Rohitman - avatar
+ 4
Float is use for storing decimal nos.. And double is also used for storing nos. But with twice precision as compared to float
10th Nov 2019, 10:24 AM
Saurabh B
Saurabh B - avatar
0
in most languages float is based on a 32-bit variable while doubles are mostly based on 64-bits meaning its more precise than float
15th Nov 2019, 4:08 PM
Mariuch
Mariuch - avatar