sdlFmodf function stdinc

double sdlFmodf(
  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 single-precision floating point values, use SDL_fmod for double-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.2.0.

\sa SDL_fmod \sa SDL_truncf \sa SDL_modff \sa SDL_ceilf \sa SDL_floorf \sa SDL_roundf \sa SDL_lroundf

extern SDL_DECLSPEC float SDLCALL SDL_fmodf(float x, float y)

Implementation

double sdlFmodf(double x, double y) {
  final sdlFmodfLookupFunction = _libSdl
      .lookupFunction<
        Float Function(Float x, Float y),
        double Function(double x, double y)
      >('SDL_fmodf');
  return sdlFmodfLookupFunction(x, y);
}