From WikiChip
mirc/identifiers/$abs
< mirc‎ | identifiers
Revision as of 19:02, 23 June 2014 by Zmodem (talk | contribs) (Created $abs identifier - mIRC)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$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