SDL_modff - Split x into integer and fractional parts
Contents
Availability
This function is available since SDL 3.2.0.
Description
This function operates on single-precision floating point values, use SDL_modf for double-precision
floats.
Function Parameters
x floating point value.
y output pointer to store the integer part of x.
Name
SDL_modff - Split x into integer and fractional parts
Return Value
Returns the fractional part of x.
See Also
SDL_modf(3), SDL_truncf(3), SDL_fmodf(3) Simple Directmedia Layer SDL 3.2.20 SDL_modff(3)
Synopsis
#include<SDL3/SDL_stdinc.h>floatSDL_modff(floatx,float*y);
Thread Safety
It is safe to call this function from any thread.
