SDL_modf - Split x into integer and fractional parts
Contents
Availability
This function is available since SDL 3.2.0.
Description
This function operates on double-precision floating point values, use
SDL_modff
for single-precision floats.
Function Parameters
x floating point value.
y output pointer to store the integer part of x .
Header File
Defined in SDL3/SDL_stdinc.h
Name
SDL_modf - Split x into integer and fractional parts
Return Value
Returns the fractional part of x .
See Also
•(3), SDL_modff(3), •(3), SDL_trunc(3), •(3), SDL_fmod(3) Simple Directmedia Layer SDL 3.2.10 SDL_modf(3)
Synopsis
#include"SDL3/SDL.h"doubleSDL_modf(doublex,double*y);
Thread Safety
It is safe to call this function from any thread.
