abs() returns the absolute value of the given argument. : Abs : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Abs »

 

abs() returns the absolute value of the given argument.


If the argument is a complex number, then math.sqrt(num .real2 + num.imag2is returned.

print abs(-11)
print abs(110.)
print abs(11.12-21.11j)
print abs(10.213 10.178)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Function
» Abs