VBScript Fix Function
Complete VBScript Reference Manual
The Fix function returns the integer portion of a specified number.
**Note:** If the number parameter contains Null, Null is returned.
**Tip:** See the Int function.
Syntax
Fix(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:
-6
-6
Try it »
Complete VBScript Reference Manual