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
- 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