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