From WikiChip
$abs Identifier - mIRC
< mirc‎ | identifiers

$abs returns the absolute value of a number.


Synopsis[edit]

$abs(N)

Parameters[edit]

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

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

Example[edit]

Echo the absolute value of -7 to the active window

//echo -a $abs(-7)

Compatibility[edit]

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[edit]

$calc

$floor

$round

[Expand]
v · d · e mIRC identifier list