SDL_isinf(3)
SDL_isinf(3) π is it infinity tho??
okay bestie, gather round, because today we're checking if a double is literally infinity β¨ this is a page from the SDL3 FUNCTIONS collection, and honestly? it's giving short and iconic.
NAME π
SDL_isinf β return whether the value is infinity.
like. that's it. that's the whole job. is it infinity? yes or no. π
SYNOPSIS β¨
#include <SDL3/SDL_stdinc.h>
int SDL_isinf(double x);
FUNCTION PARAMETERS π¦
xβ a double-precision floating point value. that's the little guy we're interrogating π΅οΈβοΈ
RETURN VALUE πΈ
returns non-zero if the value is infinity, and 0 otherwise. so like, truthy or falsy, no in-between, periodt π
lowkey important: it says non-zero, not 1. don't go comparing it to 1 exactly, bestie, that's not the vibe the docs are promising π«Ά
THREAD SAFETY π
it is safe to call this function from any thread. no locks, no drama, no main-character-only rules. call it from wherever you want, she doesn't care π β¨
AVAILABILITY π
this function has been available since SDL 3.2.0. so if you're on something olderβ¦ girl. upgrade π
SEE ALSO π₯
SDL_isinff(3)β thefloatversion, for when your number is single-precision and also needs a vibe check π
okay that's the whole page, no cap. now go forth and check your infinities responsibly π
Simple Directmedia Layer β SDL 3.4.18 β mwah, tysm for reading, this has been your girl SDL_isinf(3), signing off πβ¨π
π¦ 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