From a51f483cbd30ca6464543f30267de5dffbf13fde Mon Sep 17 00:00:00 2001 From: Steven Love Date: Fri, 8 Mar 2024 13:43:17 -0800 Subject: [PATCH] docs(F56): Added note to F56 docs about the rounding behavior --- vm/src/float_56.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vm/src/float_56.rs b/vm/src/float_56.rs index a951d69fd4..57ce90cc83 100644 --- a/vm/src/float_56.rs +++ b/vm/src/float_56.rs @@ -28,6 +28,9 @@ use std::str::FromStr; /// smallest positive subnormal value is 8.48e-168 (2^-555) /// smallest positive normal value is 2.98e-154 (2^-510) /// maximum finite value is 1.34e154 +/// +/// A f64 number like 1.00000000001 with 12 decimal digits will be 1.000000000001 +/// A f64 number like 1.000000000001 with 13 decimal digits will be converted to 1.0 #[derive(Copy, Clone)] pub struct F56(pub [u8; 7]); impl Eq for F56 {}