Microsoft KB Archive/35844

Macro INT Function

PSS ID Number: Q35844 Article last modified on 11-02-1994

5.00 5.50 6.00

MS-DOS

= SUMMARY =

The INT function will truncate numbers to the next smallest integer. The following are examples:

INT(12.6)= 12 INT(-3.7)= -4

INT(expression) – The expression can be a positive or negative number, a numeric variable, a function that yields a number, or a math expression.

Rounding to the nearest integer can be done with INT(X+0.5).

KBCategory: kbother kbmacro KBSubcategory: Additional reference words: ============================================================================= Copyright Microsoft Corporation 1994.