March 2003
Intermediate to advanced
656 pages
39h 30m
English
int
int(x[,radix])
Converts any
number, or a suitable string, to an int. When
x is a number, int
truncates toward 0, dropping any fractional part.
radix may be present only when
x is a string.
radix is the conversion base, between
2 and 36, with
10 as the default.
radix can be explicitly passed as
0: the base is then 8,
10, or 16, depending on the
form of string x, just like for integer
literals, as covered in Section 4.2.1.