From WikiChip
Difference between revisions of "mirc/identifiers/$abs"
< mirc‎ | identifiers

(Parameters)
(Parameters)
 
Line 8: Line 8:
 
* '''N''' - The number that you want to retrieve the absolute value for.
 
* '''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))
+
You can use the letter 'e' or 'd' as *10^N, $abs(5e6) = $abs($calc(5*10^6))
  
 
== Example ==
 
== Example ==

Latest revision as of 20:37, 13 August 2018

$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