SDL_fabsf - 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 single-precision floating point values, use SDL_fabs for double-precision
floats.
Function Parameters
x floating point value to use as the magnitude.
Name
SDL_fabsf - Compute the absolute value of xReturn Value
Returns the absolute value of x.
See Also
SDL_fabs(3) Simple Directmedia Layer SDL 3.2.20 SDL_fabsf(3)
Synopsis
#include<SDL3/SDL_stdinc.h>floatSDL_fabsf(floatx);
Thread Safety
It is safe to call this function from any thread.
