Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VBScript Int Function

VBScript Int Function


VBScript reference manual 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 »


VBScript reference manual Complete VBScript Reference Manual