0

What does "double" do in c++?

What is "double"

2nd Jan 2022, 3:25 AM
Gibo
Gibo - avatar
4 Answers
+ 4
It's a type modifier. Did you do all lessons on variables?
2nd Jan 2022, 3:33 AM
Emerson Prado
Emerson Prado - avatar
+ 2
The double is a fundamental data type built into the compiler and used to define numeric variables holding numbers with decimal points. C, C++, C# and many other programming languages recognize the double as a type. A double type can represent fractional as well as whole values. https://www.quora.com/In-C++-what-does-a-double-do https://www.thoughtco.com/definition-of-double-958065
2nd Jan 2022, 3:49 AM
NEZ
NEZ - avatar
+ 1
It is same like float but it Stores up to 15 significant digits.
3rd Jan 2022, 3:31 AM
Kartik Shinde
Kartik Shinde - avatar
+ 1
Double is a datatype. It's use 2 x float = almost it use 8 bytes of memory
3rd Jan 2022, 8:03 AM
N. Vimukthi Dilshan Fernando