Equinox Online Help - Language Reference - A to Z

Home

Int

Applies to
SyntaxInt(NumberExpression)
Action[Function] Returns an integer number.
ScopeUsable anywhere.
Notes

The function returns the integer part of NumberExpression. Negative numbers truncate towards zero. eg:

Int(-0.7) | Returns 0
Int(-9.7) | Returns -9
Int(9.7) | Returns 9
CategoryMaths
See Also Abs, Acos, Asin, Atan, Cos, Deg, Int, Log, Max, Min, MinMax, Rad, Rnd, RndStart, Round, Sign, Sin, Sqrt, Tan
Example

This example calculates the number of whole days involved in testing a new product.

TestDays = Int(TestHours / 24)