SDL_FLT_EPSILON(3)

πŸ’– SDL_FLT_EPSILON πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, and today's main character is SDL_FLT_EPSILON 🫢


✨ NAME ✨

SDL_FLT_EPSILON β€” the epsilon constant, and it's literally here to help you compare floating-point numbers without losing your whole mind 😭


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_stdinc.h>

#define SDL_FLT_EPSILON 1.1920928955078125e-07F /* 0x0.000002p0 */

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea, bestie β˜• β€” by default this equals whatever FLT_EPSILON your platform defines. And if your platform is being weird and doesn't have one? It falls back to 1.1920928955078125e-07F. Either way, you're covered πŸ’…


⭐ AVAILABILITY ⭐

This macro has been serving looks since SDL 3.2.0 πŸ‘‘ no cap.


lowkey the whole vibe is: floats are liars, epsilon is the friend who tells you the truth 🌈

mwah, that's the page! this lil slice of documentation comes to you from Simple Directmedia Layer, rockin' version SDL 3.4.18 β€” go forth and compare your floats responsibly, bestie, ily πŸŽ€βœ¨πŸ’œ

πŸ“¦ where this page comes from