Skip to main content

Module precision

Module precision 

Source
Expand description

Precision bound computation for bounded floating-point values.

This module implements the core algorithm for determining the minimum number of bits needed to represent bounded floating-point values within a given precision tolerance.

Structs§

PrecisionBound
Precision bound calculator for floating-point values.

Constants§

PRECISION_MAP
Precomputed decimal lengths for common precision values.

Functions§

get_decimal_length
Get the decimal length for a given precision.
get_precision_bound
Get the precision bound value for a given number of decimal places.