Problme with floating point binary numbers and division.

I am working on a C++ libarary called Heap Variable, which can be found on sourceforge.net.

My problem is in the division routine, i have a bug which causes a repeating division when there shoulnd't be one.

What i'm asking for is information on what the binary looks like in a IEEE float
when the value is 0.4

This will tell me if the division program is doing more than it should. And if it is, i'm going to be stuck tryingn to figure out how to tell it when to stop, and yet still allow repeating numbers.
Why don't you check for yourself.
http://en.wikipedia.org/wiki/Double-precision_floating-point_format

may be a starting point
good luck!
Last edited on
Topic archived. No new replies allowed.