0
Give some clarity on double and long double?
confusing
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)
+ 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.
0
happy Sunday
0
how are u day is Sunday