0

What is the difference between int double and float?

What is the difference between those three and for what each is meant?

17th Jan 2019, 10:22 PM
Ranel
2 Answers
+ 3
A number which doesn't have decimal point like 3,45,19737,1639330 etc is called integer. A number which has decimal point or you can say fractional values is called float.e.g 2.3,4.578,235.368437 etc. A number which also has decimal point or in fractional values but more precise or you can say more accurate is called double.double are basically those numbers which has large amount of numbers after decimal point. e.g 234.23456779954334566775334567
18th Jan 2019, 1:25 AM
Maninder $ingh
Maninder $ingh - avatar
+ 1
int; a whole number can both be positive or negative e.g 5, -10, 20 float; a real number (single precision) of 4 bytes. double; also a real number but has double precision (8 bytes). real numbers example: 5.1, 8.5, -10.1 Hope this helps.
17th Jan 2019, 10:27 PM
Joery De Loose
Joery De Loose - avatar