Fabs - Fabs - 5.3 English - 68552

AOCL API Guide (68552)

Document_ID
68552
Release_Date
2026-05-13
Version
5.3 English
float amd_fabsf(float x)#

Computes the absolute value of a single-precision number.

Parameters:

x – Input value.

Returns:

|x|.

double amd_fabs(double x)#

Computes the absolute value of a double-precision number.

Parameters:

x – Input value.

Returns:

|x|.