FUNCTION

abs

pure function abs(a: integer): integer

Returns the absolute value of a integer value; i.e. the value itself if it's positive or its negation if it's negative.

Parameters

  • a — the integer for which to determine an absolute value

Returns

the absolute value of the argument

Since

0.6.0


pure function abs(a: big_integer): big_integer

Returns the absolute value of a big_integer value; i.e. the value itself if it's positive or its negation if it's negative.

Parameters

  • a — the big_integer for which to determine an absolute value

Returns

the absolute value of the argument

Since

0.12.0


pure function abs(a: decimal): decimal

Returns the absolute value of a decimal value; i.e. the value itself if it's positive or its negation if it's negative.

Parameters

  • a — the decimal for which to determine an absolute value

Returns

the absolute value of the argument

Since

0.9.1

© 2026 Chromia