NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
variant abs ( variant  num)
inline

Absolute value.

Return the absolute value of the value argument. Any scalar type can be passed into this function.

Parameters
numThe numeric value.
Returns
The absolute value of num. The return type matches the input type.
Examples:
ex_abs.nxc.