logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_fabs - Compute the absolute value of x

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 x

Return 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.

See Also