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: 2020/02/28 10:46 (external edit)