User Tools

Site Tools


en:abs

This is an old revision of the document!


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.1471025824.txt.gz · Last modified: 2020/02/28 10:46 (external edit)