Abs()

From TinyMUX
Jump to: navigation, search

Description

FUNCTION: 20px-Function.png abs(number)

Returns the absolute value of its argument.

The number may be a floating point number, in which case a floating point result is returned.

Related Topics: iabs(), isign(), sign().

Examples

> say abs(4)
You say "4"
> say abs(-4)
You say "4"
> say abs(0)
You say "0"


(As usual, leaving Server Differences to those In The Know about such things. --Soylent 00:16, 3 December 2005 (EST))