Skip to content

Commit 9cdaac0

Browse files
committed
fix: F56::MIN_POSITIVE_SUBNORMAL was accidentally 0 instead of 8e-168
1 parent 507fbae commit 9cdaac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/f56.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl F56 {
208208
// Smallest positive normal F56, roughly 2.98e-154
209209
pub const MIN_POSITIVE: F56 = F56([0x00, 0b0010_0000, 0x00, 0x00, 0x00, 0x00, 0x00]);
210210
// Smallest positive subnormal F56, roughly 8.48e-168
211-
pub const MIN_POSITIVE_SUBNORMAL: F56 = F56([0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]);
211+
pub const MIN_POSITIVE_SUBNORMAL: F56 = F56([0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01]);
212212
// Minimum numer of decimal digits of precision (experimentally derived)
213213
// for comparison, f32 has 6-9 decimal digits of precision and f64 has 15-17. I believe F56 has 12-14
214214
pub const DIGITS: usize = 12;

0 commit comments

Comments
 (0)