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_modff - Split x into integer and fractional parts

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.

See Also