# VBScript Abs Function
* * Complete VBScript Reference Manual](#)
* * *
The Abs function returns the absolute value of a specified number.
**Note:** If the number parameter contains Null, Null is returned.
**Note:** If the number parameter is an uninitialized variable, 0 is returned.
### Syntax
Abs(number)
| Parameter | Description |
| :--- | :--- |
| number | Required. A numeric expression. |
## Examples
## Example 1
document.write(Abs(1) & "
")
document.write(Abs(-1))
The output of the above example:
1
1
[Try it Β»](#)
## Example 2
document.write(Abs(48.4) & "
")
document.write(Abs(-48.4))
The output of the above example:
48.4
48.4
[Try it Β»](#)
* * Complete VBScript Reference Manual](#)
Func Abs
π
2026-06-18 | π C#
YouTip