Malte Skarupke personal blog

Why Does Integer Addition Approximate Float Multiplication?

Here is a rough approximation of float multiplication (source): float rough_float_multiply(float a, float b) { constexpr uint32_t bias = 0x3f76d000; return bit_cast<float>(bit_cast<uint32_…
Points
182
HN comments
81
Submissions
1
Cited by
0 commenters

Math & AlgorithmsSoftware Engineering2025

On Hacker News

SubmittedTitle on HNPointsComments
Feb 9, 2025Why Does Integer Addition Approximate Float Multiplication? by ibobev18281

More from Malte Skarupke

All 21 posts →

Related posts from the same era