SDL_isnanf(3)

πŸ’… SDL_isnanf β€” a manual page, but make it cute

okay bestie, welcome to SDL_isnanf(3) from the SDL3 FUNCTIONS collection. yes we're doing math-adjacent float lore today and honestly? it's giving extremely specific and I'm obsessed. πŸ¦‹


✨ NAME ✨

SDL_isnanf β€” Return whether the value is NaN.

like, is this float Not A Number or not. that's the whole job. that's the entire assignment. πŸŽ€


✨ SYNOPSIS ✨

#include <SDL3/SDL_stdinc.h>

int SDL_isnanf(float x);

✨ FUNCTION PARAMETERS ✨

  • x β€” floating point value. just. a float. a little guy. hand it over. 🫢

✨ RETURN VALUE ✨

Returns non-zero if the value is NaN, and 0 otherwise.

no cap, that's it β€” truthy means "yeah this one's a NaN", falsy means "nope, it's a real number, carry on". πŸ’–


✨ THREAD SAFETY ✨

It is safe to call this function from any thread.

bestie you can call it from every thread. all of them. simultaneously. it's fine, it's chill, main character energy for days. πŸ‘‘


✨ AVAILABILITY ✨

This function is available since SDL 3.2.0.

so if you're on something older than that? πŸ’€ not me telling you to upgrade but... upgrade.


✨ SEE ALSO ✨

  • SDL_isnan(3) β€” the sibling. the double-flavoured version. iykyk.

okay that's the whole page, no notes, ate and left no crumbs. this was Simple Directmedia Layer manual page for SDL 3.4.18 β€” and yeah the footer had no date on it, which is honestly so mysterious of it, but we respect the vibe. πŸŒˆπŸ’œ bye bestie, go check your floats ✨🌸

πŸ“¦ where this page comes from