Int
Int (Function)
Format
int ( expression )
returns integer_expression
Description
Convert expression to an integer (whole) number. Int will convert a string or a float to an integer value. If the expression can not be converted then a zero will be returned.
| Value | int() | ceil() | floor() |
|---|---|---|---|
| -4.56 | -4 | -4 | -5 |
| -0.56 | 0 | 0 | -1 |
| 0.56 | 0 | 1 | 0 |
| 5.56 | 5 | 6 | 5 |
See Also
Abs, Acos, Asin, Atan, Ceil, Cos, Degrees, Exp, Float, Floor, Int, IsNumeric, Log, Log10, Radians, Rand, Round, Seed, Sin, Sqr, Tan