Definition
The abs() function returns the absolute value of the specified number.
Syntax
abs(n)
Parameters
Parameter | Description |
---|---|
n | Required. Number |
Examples
y = abs(3+5j)
print(y)
x = abs(-12.432)
print(x)