0

Why should I use double and long numbers?

I just wanted to ask, why should I use double or long double type numbers when int and float take less space.

25th Jun 2016, 6:10 PM
Christian Roos
Christian Roos - avatar
5 Antworten
+ 2
more precision and large numbers. thats it.
25th Jun 2016, 6:13 PM
Garme Kain
Garme Kain - avatar
0
So do int/float have a limit on how big the number can be?
25th Jun 2016, 6:15 PM
Christian Roos
Christian Roos - avatar
0
yes. Actually, it depends of the machine. the most of them use int as a 24 bit number. double 64 bits i think and float a little bit less.
25th Jun 2016, 9:42 PM
Garme Kain
Garme Kain - avatar
0
double is 64bit float number. it is used to get better precision long is 64bit integer on 32bit machine. It is used to store large number i. e. greater than 2^32
26th Jun 2016, 6:49 AM
Ramesh Marisa
0
int is 32bit number on 32bit machine float is 32bit size single precision number
26th Jun 2016, 6:50 AM
Ramesh Marisa