0

Give some clarity on double and long double?

confusing

5th Feb 2017, 12:06 PM
Prashanth Charla
Prashanth Charla - avatar
4 odpowiedzi
+ 11
There are three floating point types: float, double, and long double. The type double provides at least as much precision as float, and the type long double provides at least as much precision as double. The set of values of the type float is a subset of the set of values of the type double; the set of values of the type double is a subset of the set of values of the type long double. (Copied)
5th Feb 2017, 1:25 PM
Filip
Filip - avatar
+ 2
long double, using more memory (10 bytes for example) allows you to store more decimal plces ( 19 decimal places for 10 bytes) being more precise double, using less memory (8 bytes for example) allows you to store less decimal (15 decimal places for 8 bytes) being less precise than long double. the exact amount of memory reserved for every data type depends on the system you use.
5th Feb 2017, 3:13 PM
seamiki
seamiki - avatar
0
happy Sunday
5th Feb 2017, 3:38 PM
johnsonobasi
0
how are u day is Sunday
5th Feb 2017, 3:39 PM
johnsonobasi