Syntax
abs(n)
Parameters
Parameter | Description |
---|---|
n | Required. A number |
Description
The abs() function returns the absolute value of the specified number.
Example
x = abs(-7.25)
println(x)
7.25
abs(n)
Parameter | Description |
---|---|
n | Required. A number |
The abs() function returns the absolute value of the specified number.
x = abs(-7.25)
println(x)
7.25