Function SDL_modf
pub unsafe extern "C" fn SDL_modf(x: f64, y: *mut f64) -> f64 ⓘ
Available on crate feature
dep_sdl3
only.Expand description
Split x
into integer and fractional parts
This function operates on double-precision floating point values, use
SDL_modff
for single-precision floats.
§Parameters
x
: floating point value.y
: output pointer to store the integer part ofx
.
§Return value
Returns the fractional part of x
.
§Thread safety
It is safe to call this function from any thread.
§Availability
This function is available since SDL 3.2.0.