Abs()

From TinyMUX
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

FUNCTION: 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))