SDL_isnan(3)
π SDL_isnan π
okay bestie, welcome to SDL_isnan(3) β yes it's a real page in the SDL3 FUNCTIONS lineup and yes it's exactly as unhinged-and-simple as it sounds. sit with me for like thirty seconds and you'll be a NaN-detecting icon, fr fr.
β¨ NAME β¨
SDL_isnan β Return whether the value is NaN.
like... is it Not a Number or is it a Number? this function is the vibe check. π¦
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_stdinc.h>
int SDL_isnan(double x);
π FUNCTION PARAMETERS π
xβ a double-precision floating point value. just hand her yourdoubleand let her look at it. π
β RETURN VALUE β
Returns non-zero if the value is NaN, and 0 otherwise.
that's it. that's the whole personality. non-zero = yes it's NaN, 0 = nope, it's a normal little number, carry on. π«Ά
π§ THREAD SAFETY π§
It is safe to call this function from any thread.
not me being fully thread-safe and unbothered π go ahead, call her from literally anywhere, she does not care. queen behavior. π
π AVAILABILITY π
This function is available since SDL 3.2.0.
so if you're on anything older, bestie... it's giving nothing. upgrade era. β¨
π₯ SEE ALSO π₯
iykyk β that's the float sibling, go say hi. π
okay that's the whole page, you ate it, mwah π this cutie lives in Simple Directmedia Layer, documented for SDL 3.4.18 β go forth and detect your NaNs, bestie, and stay iconic. πΈππ¦
π¦ 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