This shows you the differences between two versions of the page.
— |
cpp:datatypes:double [2024/02/16 01:04] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{keywords>wiki library source code example reference}} | ||
+ | ===== double ===== | ||
+ | double | ||
+ | 8 Byte | ||
+ | 2.3E-308 - 1.7E+308 | ||
+ | precision 15 | ||
+ | |||
+ | |||
+ | |||
+ | ===== Cpp Sourcecode Example ===== | ||
+ | <code cpp> | ||
+ | #include <iostream> | ||
+ | using namespace std; | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | |||
+ | cout << "Size of double: " << sizeof(double) << " bytes" << endl; | ||
+ | return 0; | ||
+ | } | ||
+ | </code> |