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

(Created $abs identifier - mIRC)
 
(See Also)
Line 22: Line 22:
  
 
[[$round identifier - mIRC|$round]]
 
[[$round identifier - mIRC|$round]]
 +
 +
[[Category:mIRC identifiers]]

Revision as of 19:35, 23 June 2014

$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