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.
5 Antworten
+ 2
more precision and large numbers. thats it.
0
So do int/float have a limit on how big the number can be?
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.
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
0
int is 32bit number on 32bit machine
float is 32bit size single precision number