c0de 0.3.0Diese Seite auf Deutsch

ABS ​

Returns the absolute value of a number.

A result that doesn't fit into an INTEGER raises NUMERIC_OVERFLOW.

Parameters and results

  • value INTEGER|FLOAT: the number
  • result result like value: the number without its sign

Example

c0de
CALL c0de/math/ABS
    PARAMETER value distance ;
    RESULT result steps