Click here to return to the KiXtart HelpDesk main page...

KiXtart 2001 Manual

Int( )

Action: Removes the fractional part of a number and returns the resulting integer value.
Syntax: Int (expression)


Any valid numeric expression.

Returns: Variant of subtype Integer.
Remarks: If the number is negative, Int( ) returns the first negative integer less than or equal to the number. For example, Int( ) converts -6.3 to -7.
See Also: Abs( ), Fix( )

$z = Int($pi)   ; $z = 3