+ 2
what is the difference between integer & double
4 Respostas
+ 7
integers are numbers without decimals. double is a floating-point numbers with double precisions.
+ 2
integers don't have decimals while double contain decimals, and integers represent whole numbers according to my understanding
+ 1
integer data type used for decimal numbers, and double is data type float data type double is used for pointing value
example:
double value is = 78.654 with point
integer value is = 354678 without point
+ 1
integer uses the same size of memory to describe a value of a higher range. Instead double is more precise (decimals) but You couldn't store too high number.