Revision [12341]
This is an old revision of KeyPgInt made by JeffMarshall on 2008-01-18 14:15:59.
INT
Returns the integer part of a number
Syntax:
KeyPgDeclare declare KeyPgFunction function Int ( KeyPgByval byval number KeyPgAs as KeyPgDouble double ) KeyPgAs as KeyPgDouble double
Usage:
result = Int ( number )
Parameters:
number
the number
Return Value:
Returns the largest integer less than or equal to the input.
Description:
For example, Int(4.9) will return 4.0, and Int(-1.3) will return -2.0
The Int unary KeyPgOperator 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 CompilerOptlang -lang qb dialect, this operator cannot be overloaded.
Differences from QB:
- None
See also:
Back to Math