math.pi
abs
round
Returns the absolute value of a number.
abs(x)
Enter values below to update the example in real time.
print
print(abs(-5)) # 5 print(abs(-3.7)) # 3.7 print(abs(0)) # 0