Split x
into integer and fractional parts
Defined in <SDL3/SDL_stdinc.h>
double SDL_modf(double x, double *y);
double | x | floating point value. |
double * | y | output pointer to store the integer part of x . |
(double) Returns the fractional part of x
.
This function operates on double-precision floating point values, use SDL_modff for single-precision floats.
It is safe to call this function from any thread.
This function is available since SDL 3.1.3.