int
Casts an expression to an integer.
Description
The int
function casts the provided value x
to an integer. Non-integer
values are truncated.
Examples
Cast a floating-point number to an integer
Convert a string to an integer
See Also
uint, float, time, string, ip