std1.0.0-beta-7 SafeC docs

Module float

#include <std/float.h> source

Floating-point limit constants (C89/C99/C11/C17/C23) All values assume IEEE 754 binary32 (float) and binary64 (double).

Macros

FLT_RADIXRadix of floating-point representation (always 2 for IEEE 754).
FLT_MANT_DIGfloat — mantissa bits (including implicit leading 1 bit)
FLT_DIGfloat — significant decimal digits
FLT_MIN_EXPfloat — minimum exponent (unbiased)
FLT_MAX_EXPfloat — maximum exponent
FLT_MIN_10_EXPfloat — minimum decimal exponent
FLT_MAX_10_EXPfloat — maximum decimal exponent
FLT_EPSILONfloat — machine epsilon (2^-23)
FLT_MINfloat — smallest positive normalised value
FLT_MAXfloat — largest finite value
FLT_TRUE_MINfloat — smallest positive value (subnormal)
DBL_MANT_DIGdouble — mantissa bits
DBL_DIGdouble — significant decimal digits
DBL_MIN_EXPdouble — minimum exponent (unbiased)
DBL_MAX_EXPdouble — maximum exponent
DBL_MIN_10_EXPdouble — minimum decimal exponent
DBL_MAX_10_EXPdouble — maximum decimal exponent
DBL_EPSILONdouble — machine epsilon (2^-52)
DBL_MINdouble — smallest positive normalised value
DBL_MAXdouble — largest finite value
DBL_TRUE_MINdouble — smallest positive value (subnormal)
LDBL_MANT_DIGlong double — treated as double on LP64 / LLP64 without 80-bit FPU extension
LDBL_DIG
LDBL_MIN_EXP
LDBL_MAX_EXP
LDBL_EPSILON
LDBL_MIN
LDBL_MAX
FLT_ROUNDSDecimal rounding mode: 1 = round to nearest (IEEE 754 default).
FLT_EVAL_METHODEvaluation method: 0 = each operation evaluated in its declared type.
DECIMAL_DIGDecimal digits needed to represent any long double value uniquely.