VBScript Int Function
Complete VBScript Reference Manual
The Int function returns the integer portion of a specified number.
**Note:** If the number parameter contains Null, Null is returned.
**Tip:** See the Fix function.
Syntax
Int(number)
| Parameters | Description |
|---|---|
| number | Required. A valid numeric expression. |
Example
Example 1
The example above produces the following output:
6
6
Try it »
Example 2
The example above produces the following output:
-7
-7
Try it »
Complete VBScript Reference Manual