Description
The Int() function returns the integer part of a specified number.
Note: If the number parameter contains Null, Null will be returned.
Tip: Also look at the Fix function.
This function has the form:
Int(number)
Parameter | Description |
---|---|
number | (required) A valid numeric expression |
Examples
The following examples show the basic use of this function:
Example 1
Msgbox(Int(6.83227))
Msgbox(Int(6.23443))
This produces the following result (each line in a separate pop-up message box):
6
6
Example 2
Msgbox(Int(-6.13443))
Msgbox(Int(-6.93443))
This produces the following result (each line in a separate pop-up message box):
-7
-7
Miscellaneous Information
Supported in Version: | 1.0 |
---|