Quantcast
Channel: Understanding bit-level float multiplication in C? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by chqrlie for Understanding bit-level float multiplication in C?

Your test is incorrect: ((float) 0X800001) converts the integer value 0x800001 to the closest float value, not to a float with the same bit representation. To check your results, you must perform type...

View Article


Understanding bit-level float multiplication in C?

I tried to implement float_twice(float_bits x) in C, which multiplies x by 2 in bit-level. I compared the result of float_twice and the real float multiplication implemented in C, but found a...

View Article

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>