#### Revision [20953]

This is an old revision of KeyPgInt made by fxm on 2016-03-13 03:50:09.

### INT

Returns the floor of a number

**Syntax:**

declare function

declare function

declare function

declare function

declare function

declare function

**Int**( byval*number*as single ) as singledeclare function

**Int**( byval*number*as double ) as doubledeclare function

**Int**( byval*number*as integer ) as integerdeclare function

**Int**( byval*number*as uinteger ) as uintegerdeclare function

**Int**( byval*number*as longint ) as longintdeclare function

**Int**( byval*number*as ulongint ) as ulongint**Usage:**

`
`

*result*=

**Int**(

*number*)

**Parameters:**

*number*
the floating-point number to round

**Return Value:**

Returns the floor of

`, i.e. the largest integer that is less than or equal to it.`*number***Description:**

`returns the floor of`

**Int**`. For example,`

*number*`will return`

**Int**(4.9)`4.0`, and

`will return`

**Int**(-1.3)`-2.0`. For integer types, the number is returned unchanged.

The

`unary`

**Int**`operator`can be overloaded with user defined types.

**Examples:**

Print Int(1.9) '' will print 1

Print Int(-1.9) '' will print -2

Print Int(-1.9) '' will print -2

**Dialect Differences:**

- In the
*-lang qb*dialect, this operator cannot be overloaded.

**Differences from QB:**

- None

**See also:**

Back to Math