Everything

imaxabs [V1.07 or later]


Obtains the absolute value (intmax_t type).

[Classification]

Standard library

[Syntax]

#include <inttypes.h>

intmax_t __far imaxabs(intmax_t j); (C99)

[Return value]

Returns the absolute value of j (size of j), | j |. If the input value of imaxabs is the smallest negative value, the same value is returned.

[Description]

This function obtains the absolute value of j (size of j), | j |. If j is a negative number, the result is the reversal of j. If j is not negative, the result is j.