pub const MAX_FLOAT_PRECISION: u8 = 16;Expand description
The maximum precision that can be safely used with f64-based constructors.
This is a hard limit imposed by IEEE 754 double-precision floating-point representation, which has approximately 15-17 significant decimal digits. Beyond 16 decimal places, floating-point arithmetic becomes unreliable due to rounding errors.
For higher precision values (such as 18-decimal wei values in DeFi), specialized constructors that work with integer representations should be used instead.