NXSL:abs

Revision as of 16:13, 13 September 2022 by AlexKirhenshtein (talk | contribs) (Text replacement - "^" to "{{deprecated}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide)

Returns the absolute value of number.


Syntax

abs(number);


Parameters

number Number for which to return absolute value.


Return Value

Absolute value of number.


Examples

abs(12.3)	->	12.3
abs(-0.307)	->	0.307