to_integer

Converts a numerical, Boolean or string value to an integer.

Any decimal digits present in the number after the decimal point are removed. The Boolean values true and false are converted into 1 and 0 respectively.

Parameter 1 - a numerical, Boolean or string value.

Returns: an integer value or null.