The available range of integers is
on a 32 bit machine and
2^63-1 on a 64 bit machine. Integers can be represented in any of the following ways.
Baseranges from 2 to 36 and
Numbercan have any sequence of alphanumeric characters. Both upper and lower case alphabetic characters in
Numberare used to represent the appropriate digit when
Baseis greater than 10.
2'1010 16'A 16'a
0bfollowed by binary digits. Similarly octal and hexadecimal numbers can be represented by
0xfollowed by digits.
0b1011 0o3170 0x3afd
Charactergives the character code of
gives the ASCII character code 65.
A natural number is a non-negative integer.
num type numbers include double precision floating point numbers. They are represented
using either a decimal point or scientific e notation. Examples: