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