From WikiChip
$abs Identifier - mIRC
< mirc‎ | identifiers
Revision as of 22:46, 12 August 2018 by Ouims (talk | contribs) (Parameters)

$abs returns the absolute value of a number.


Synopsis

$abs(N)

Parameters

  • N - The number that you want to retrieve the absolute value for.

You can use the letter 'e' or 'l' as *10^N, $abs(5e6) = $abs($calc(5*10^6))

Example

Echo the absolute value of -7 to the active window

//echo -a $abs(-7)

Compatibility

Added: mIRC v4.5
Added on: 30 Jun 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also

$calc

$floor

$round

[Expand]
v · d · e mIRC identifier list