Module libc/float

libc/float
Stability: unstable — a raw C binding, not a Yo design, and currently unused: nothing in the tree imports it. Yo has its own float limits as real comptime constants on the types — `f64.MAX`, `f64.MIN_POSITIVE`, `f64.EPSILON`, `f64.INFINITY`, `f64.NAN` and the `f32` set, in `std/math` — and `std/math`'s header explains why they are Yo literals rather than these macros: `FLT_MAX` and friends are C macros expanding to rvalues, which are not compile-time values to Yo and cannot be an `inout` receiver. Use `std/math`. This file stays for the case of a transcribed C prototype that mentions a limit by name. — stable modules only change additively; this one may still change.

C11 <float.h> — floating-point implementation limits.

Stability

unstable — a raw C binding, not a Yo design, and currently unused: nothing in the tree imports it. Yo has its own float limits as real comptime constants on the types — f64.MAX, f64.MIN_POSITIVE, f64.EPSILON, f64.INFINITY, f64.NAN and the f32 set, in std/math — and std/math's header explains why they are Yo literals rather than these macros: FLT_MAX and friends are C macros expanding to rvalues, which are not compile-time values to Yo and cannot be an inout receiver. Use std/math. This file stays for the case of a transcribed C prototype that mentions a limit by name.

Constants

FLT_RADIX constant int

Value: <unknown: int>

FLT_ROUNDS constant int

Value: <unknown: int>

FLT_EVAL_METHOD constant int

Value: <unknown: int>

DECIMAL_DIG constant int

Value: <unknown: int>

FLT_DIG constant int

Value: <unknown: int>

FLT_EPSILON constant f32

Value: <unknown: f32>

FLT_MANT_DIG constant int

Value: <unknown: int>

FLT_MAX constant f32

Value: <unknown: f32>

FLT_MAX_10_EXP constant int

Value: <unknown: int>

FLT_MAX_EXP constant int

Value: <unknown: int>

FLT_MIN constant f32

Value: <unknown: f32>

FLT_MIN_10_EXP constant int

Value: <unknown: int>

FLT_MIN_EXP constant int

Value: <unknown: int>

DBL_DIG constant int

Value: <unknown: int>

DBL_EPSILON constant f64

Value: <unknown: f64>

DBL_MANT_DIG constant int

Value: <unknown: int>

DBL_MAX constant f64

Value: <unknown: f64>

DBL_MAX_10_EXP constant int

Value: <unknown: int>

DBL_MAX_EXP constant int

Value: <unknown: int>

DBL_MIN constant f64

Value: <unknown: f64>

DBL_MIN_10_EXP constant int

Value: <unknown: int>

DBL_MIN_EXP constant int

Value: <unknown: int>

LDBL_DIG constant int

Value: <unknown: int>

LDBL_EPSILON constant longdouble

Value: <unknown: longdouble>

LDBL_MANT_DIG constant int

Value: <unknown: int>

LDBL_MAX constant longdouble

Value: <unknown: longdouble>

LDBL_MAX_10_EXP constant int

Value: <unknown: int>

LDBL_MAX_EXP constant int

Value: <unknown: int>

LDBL_MIN constant longdouble

Value: <unknown: longdouble>

LDBL_MIN_10_EXP constant int

Value: <unknown: int>

LDBL_MIN_EXP constant int

Value: <unknown: int>