Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixed formate in math.rs
Signed-off-by: Yash Suthar <[email protected]>
  • Loading branch information
YashSuthar983 committed Oct 26, 2025
commit 8acd6c52baf30f45ef40050badf44c59068daf28
2 changes: 1 addition & 1 deletion stdlib/src/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ mod math {
// Direct multiplication would overflow for large i values, especially when computing
// the largest finite float (i=1024, x<1.0). By directly modifying the exponent bits,
// we avoid intermediate overflow to infinity.

// Scale subnormals to normal range first, then adjust exponent.
let (mant, exp0) = if value.abs() < f64::MIN_POSITIVE {
let scaled = value * (1u64 << 54) as f64; // multiply by 2^54
Expand Down
Loading