![]() For integer numbers, there are four types with different sizes and, hence, value ranges. Kotlin provides a set of built-in types that represent numbers. In this section we describe the basic types used in Kotlin: numbers, characters, booleans, arrays, and strings. Some of the types can have a special internal representation - for example, numbers, characters and booleans can be represented as primitive values at runtime - but to the user they look like ordinary classes. In Kotlin, everything is an object in the sense that we can call member functions and properties on any variable. ![]() ![]() Underscores in numeric literals (since 1.1). ![]()
0 Comments
Leave a Reply. |