Name

abs()

Examples
a = abs(153)# Sets 'a' to 153
b = abs(-15)# Sets 'b' to 15
c = abs(12.234)# Sets 'c' to 12.234
d = abs(-9.23)# Sets 'd' to 9.23 
Description Calculates the absolute value (magnitude) of a number. The absolute value of a number is always positive.
Syntax
abs(n)
Parameters
nany numberical value, usually an int or float
Updated on Sun Nov 26 15:34:42 2017.
Creative Commons License