You used an article on IEEE 754 arithmetic. Shouldn't you check if the number type is compliant with that format? Or can this work for any suitable type? You also have to check if "limits::digits" is 2!
Looking at the numbers you had, couldn't you just change "limits::digits10 + 1" to "limits::digits10 + 3"? It could be argued that there's just a bug in the definitions of "limits::digits10" (it's too low).
On Saturday, August 9, 2003, at 5:48 PM, Paul A. Bristow wrote: [CHOP OFF really long article, with long attachments]
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost