up previous next
abs --
absolute value of a number
|
abs(N: INT): INT
abs(N: RAT): RAT
abs(N: RINGELEM): RINGELEM |
This function returns the absolute value of
N
. If
N
is a
RINGELEM
then it must belong to an ordered ring.
/**/ abs(-3);
3
/**/ abs(-2/3);
2/3
|