Int
Returns the floor of a number
Syntax
`
Declare Function Int ( ByVal number As Double ) As Double
`
Usage
`
result = Int( number )
`
Parameters
`number`
the floating-point number to round
Return Value
Returns the floor of `number`, i.e. the largest integer that is less than or equal to it.
Description
`Int` returns the floor of x. For example, `Int(4.9)` will return `4.0`, and `Int(-1.3)` will return `-2.0`.
The `Int` unary `Operator` can be overloaded with user defined types.
Example
`
Print Int(1.9) '' will print 1
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

- `Fix`
- `CInt`
- `Operator`