abs()

Returns the absolute value of a value.

Synopsis

int abs(int value);

Parameters

Parameter Description
value Value

Return Value

Absolute value of a value.

Errors

In the event of an error, this function returns 0.

Description

Returns the absolute value of a value.

Example

main()
{
  int value;
  value = abs(-56412);
  //Setzt 'value' auf den Wert 56412
}

Assignment

Mathematical function

Availability

CTRL