
In the above program, the value of a is well within the range of a float, but since Kotlin considers any decimal point value as Double, both a and b are considered Double values. If the range of the integer value is greater than Int, then it would be considered Long. In the following example, we assign integer values to variables x and y. If the integer exceeds the range of Int, then it would be considered Long. The following tables provides information on the number of bytes a datatype requires, and the range of values a specific datatype can store. They differ in the size allotted to them in memory, or the precision of floating point.

There are six different datatypes which can store numbers.
