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)
 
Parameters:

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( )
 
Example:

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