From WikiChip
mirc/identifiers/$abs
< mirc‎ | identifiers
Revision as of 18:35, 23 June 2014 by Zmodem (talk | contribs) (See Also)

$abs returns the absolute value of a number.

Synopsis

$abs(N)

Parameters

NThe number that you want to retrieve the absolute value for.

Example

Echo the absolute value of -7 to the active window

//echo -a $abs(-7)

Compatibility

Added: mIRC v4.5

Added On: 30/06/96

See Also

$calc

$floor

$round