Table of Contents

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

2016/01/01 22:42