SDL_logf(3)
π SDL_logf(3) π
Okay so welcome to the SDL3 FUNCTIONS manual, bestie! This page is all about SDL_logf, and yes, she is a main character. π
β¨ NAME β¨
SDL_logf β Compute the natural logarithm of x. That's the whole job, and she ate. π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_stdinc.h>
float SDL_logf(float x);
πΈ DESCRIPTION πΈ
Domain: 0 < x <= INF
Range: -INF <= y <= INF
It is an error for x to be less than or equal to 0. Not me side-eyeing invalid input β bestie, do not pass 0 or negatives, periodt. π«
This function operates on single-precision floating point values, use SDL_log for double-precision floats. So if you need the double-precision version, SDL_log is your girl. π
This function may use a different approximation across different versions, platforms and configurations. i.e, it can return a different value given the same input on different machines or operating systems, or if SDL is updated. So like, same input does not always mean same output everywhere β no cap, it's giving "depends on the vibe of your setup." π
π FUNCTION PARAMETERS π
xβ floating point value. Must be greater than 0. Strictly greater, bestie.0is not invited to the function. π ββοΈ
β RETURN VALUE β
Returns the natural logarithm of x. Slay. β¨
π§΅ THREAD SAFETY π§΅
It is safe to call this function from any thread. Multithreaded icon behavior, honestly. π
π AVAILABILITY π
This function is available since SDL 3.2.0. If you're on something older, it's giving "not yet, babe." π
π SEE ALSO π
And that's the vibe check, bestie! Footer/source energy: Simple Directmedia Layer β’ SDL 3.4.18 β’ SDL_logf(3). Mwah! π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms