From Ohmnibus.NET

Qdr: Absolute

Returns the absolute of a value.

Usage

Format
abs(param)
Parameters
param: Formula from which to extract the absolute value.
Returns
The absolute value of param.

Description

This function returns the absolute value of param.

Examples

All possible results generated by abs(1d6-2):
|[1]-2| = 1
|[2]-2| = 0
|[3]-2| = 1
|[4]-2| = 2
|[5]-2| = 3
|[6]-2| = 4

History

Supported since Quick Dice Roller 1.4.3

Retrieved from http://www.ohmnibus.net/wiki/index.php?n=Qdr.Abs
Page last modified on October 06, 2014, at 02:15 PM