Easy Tutorial
❮ Func Rtrim Func Ltrim ❯

VBScript Abs Function



The Abs function returns the absolute value of a specified number.

Note: If the number argument contains Null, it returns Null.

Note: If the number argument is an uninitialized variable, it returns 0.

Syntax

Parameter Description
number Required. A numeric expression.

Example

Example 1

The above example outputs:

Example 2

The above example outputs:


❮ Func Rtrim Func Ltrim ❯