A, Numeric data types
Integer |
4 bytes |
Variables are stored as 32-bit integer, ranging from -2147483.648 to 2147483.648 |
Long |
8 bytes |
Variables are stored as 64-bit integer, ranging from -9223372036854775.808 to 9223372036854775.807 |
Short |
2 bytes |
Variables are stored as 16-bit integer, the range from -32768 to 32767 |
Single |
4 bytes |
Variables are stored as 32-bit floating-point value type, range: -3.402823E38 negative number to -1.401298E-45; |
Double |
8 bytes |
Variables are stored as 64-bit floating-point value type, range: -1.79769313486231E308 negative number to -4.94065645841247E-324; |
Decimal |
12 bytes |
No decimal point is an integer ranging from -79228162514264337593543950335 to 79228162514264337593543950335 |