Skip to content

Commit

Permalink
docs(F56): Added note to F56 docs about the rounding behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLove committed Mar 8, 2024
1 parent 8d7da37 commit a51f483
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vm/src/float_56.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand Down

0 comments on commit a51f483

Please sign in to comment.