Numeric data types

Kotlin has almost the same data types as Java. The following table lists them:

Data type No. of bytes No. of bits
Byte 1 8
Short 2 16
Int 4 32
Long 4 32
Float 8 64
Double 8 64

 

The only visible difference is that Kotlin has the data type Int as opposed to Integer in Java.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.22.135