User Tools

Site Tools


en:abs

Abs (Function)

Format

abs ( numeric_expression )

returns float_expression or integer_expression depending on the type of expression passed.

Description

Returns the absolute value of a numeric_expression.

Example

print abs(-45)
print abs(6.45)

will print

45
6.45

See Also

en/abs.txt · Last modified: 2016/08/12 11:17 by admin