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

m (bot: correcting title)
m
Line 1: Line 1:
 
{{mirc title|$abs Identifier}}'''$abs''' returns the absolute value of a number.
 
{{mirc title|$abs Identifier}}'''$abs''' returns the absolute value of a number.
 +
  
 
== Synopsis ==
 
== Synopsis ==
Line 22: Line 23:
 
{{mIRC identifier list}}
 
{{mIRC identifier list}}
  
[[Category:MIRC identifiers]]
+
[[Category:mIRC identifiers|abs]]

Revision as of 14:09, 20 September 2017

$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 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