| Objective C | Android |
Byte | 8-bit | | 8-bit | signed -128 / 127 |
Char | 16-bit | | 16-bit | Unicode |
Boolean | 1-bit | true of false | 1-bit | true of false |
Int | 32-bit | signed -2.147.483.648 / 2.147.483.647 | 32-bit | signed -2.147.483.648 / 2.147.483.647 |
Short | 16-bit | signed -32.768 / 32.767 | 16-bit | signed -32.768 / 32.767 |
Long | 64-bit | signed -9.223.372.036.854.775.808 / 9.223.372.036.854.775.807 | 64-bit | signed -9.223.372.036.854.775.808 / 9.223.372.036.854.775.807 |
Float | 32-bit | signed single precision floating point | 32-bit | signed single precision floating point |
Double | 64-bit | signed double precision floating point | 64-bit | signed double precision floating point (ideaal voor decimals) |