APFloat is derived from C code using fixed width storage for
the matntissa. When converting to C++ I changed it to variable-
width storage for space efficiency and generality reasons.
Unfortunately this leads to a complication during float->float
conversions that I missed that isn't present when using fixed
width storage.
Dale - I think this solves the issue correctly whilst preserving
correct rounding. Does it fix the problem case you had?
Neil.
diff (2.54 KB)