imaxabs Subroutine

Purpose

Returns absolute value.

Syntax

#include <inttypes.h>

intmax_t imaxabs (j)
intmax_t j;

Description

The imaxabs subroutine computes the absolute value of an integer j. If the result cannot be represented, the behavior is undefined.

Parameters

Item Description
j Specifies the value to be computed.

Return Values

The imaxabs subroutine returns the absolute value.