What is Double | Sololearn: Learn to code for FREE!


What is Double

10/8/2019 6:45:06 PM

Chetan Mohite

3 Answers

New Answer


It is used to store decimal numbers (numbers with floating point value) with double precision.


In C/C++ double is almost the same as float, only it can work with more numbers after comma, as well as it takes 8 bytes to work with.


Double is a datatype similar to float which have more allocated memory,i.e.,float has 4bytes of memory allocation while double has 8bytes and it literally depends on type of operating systems.