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. 0 is 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