int()

Function group Execute on client Platform(s)
Number YES All

Syntax

int(number)

Description

Returns the integer part of a number; it does not round to the nearest integer.

Example

Calculate lResult as int(23.1056)
; returns 23


Calculate lResult as int('-2.66')
; returns -2


Calculate lResult as abs(int(-1.999))
; returns 1