sdlFmod function

double sdlFmod(
  1. double x,
  2. double y
)

Return the floating-point remainder of x / y

Divides x by y, and returns the remainder.

Domain: -INF <= x <= INF, -INF <= y <= INF, y != 0

Range: -y <= z <= y

This function operates on double-precision floating point values, use SDL_fmodf for single-precision floats.

\param x the numerator. \param y the denominator. Must not be 0. \returns the remainder of x / y.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

\sa SDL_fmodf \sa SDL_modf \sa SDL_trunc \sa SDL_ceil \sa SDL_floor \sa SDL_round \sa SDL_lround

extern SDL_DECLSPEC double SDLCALL SDL_fmod(double x, double y)

Implementation

double sdlFmod(double x, double y) {
  final sdlFmodLookupFunction = libSdl3.lookupFunction<
      Double Function(Double x, Double y),
      double Function(double x, double y)>('SDL_fmod');
  return sdlFmodLookupFunction(x, y);
}