Skip to main content

EXACT_F64_INT_LIMIT

Constant EXACT_F64_INT_LIMIT 

Source
pub const EXACT_F64_INT_LIMIT: i128 = 9_007_199_254_740_992;
Expand description

Maximum integer magnitude that can be losslessly represented as an f64. 2^53 = 9_007_199_254_740_992. Used by both arithmetic and comparison modules to reject mixed int/float operations that would lose precision.