User Tools

Site Tools


en:int

Int (Function)

Format

int ( expression )

returns integer_expression

Description

Convert expression to an integer (whole) number. Int will convert a string or a float to an integer value. If the expression can not be converted then a zero will be returned.

Valueint()ceil()floor()
-4.56-4-4-5
-0.5600-1
0.56010
5.56565

See Also

en/int.txt · Last modified: 2020/02/28 10:46 (external edit)