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