logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_modf - Split x into integer and fractional parts

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.

See Also