Skip to content

Commit a51f483

Browse files
committed
docs(F56): Added note to F56 docs about the rounding behavior
1 parent 8d7da37 commit a51f483

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vm/src/float_56.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ use std::str::FromStr;
2828
/// smallest positive subnormal value is 8.48e-168 (2^-555)
2929
/// smallest positive normal value is 2.98e-154 (2^-510)
3030
/// maximum finite value is 1.34e154
31+
///
32+
/// A f64 number like 1.00000000001 with 12 decimal digits will be 1.000000000001
33+
/// A f64 number like 1.000000000001 with 13 decimal digits will be converted to 1.0
3134
#[derive(Copy, Clone)]
3235
pub struct F56(pub [u8; 7]);
3336
impl Eq for F56 {}

0 commit comments

Comments
 (0)