SDL_fabs - Compute the absolute value of x
Contents
Availability
This function is available since SDL 3.2.0.
Description
Domain: -INF<=x<=INF
Range: 0<=y<=INF
This function operates on double-precision floating point values, use SDL_fabsf for single-precision
floats.
Function Parameters
x floating point value to use as the magnitude.
Name
SDL_fabs - Compute the absolute value of xReturn Value
Returns the absolute value of x.
See Also
SDL_fabsf(3) Simple Directmedia Layer SDL 3.2.20 SDL_fabs(3)
Synopsis
#include<SDL3/SDL_stdinc.h>doubleSDL_fabs(doublex);
Thread Safety
It is safe to call this function from any thread.
