An number is a generic numeric type that often encompasses multiple more specific numeric types, like integers and floating-point numbers.
- JavaScript's
number
is a double-precision 64 bit floating point format (IEEE 754). - Kotlin has the following types to represent numbers:
Byte
,Short
,Int
andLong
, both signed and unsigned. These types can be inferred dynamically, or declared explicitly. Additionally it supportsFloat
andDouble
for floating point numbers.