On Monday, September 03, 2007 Arjen Markus wrote: > Serena Lien wrote:
>>round(98926650.5, 1) -> 98926650.5000001 >>round(85227887.01, 1) -> 85227887.0000001 > They are in fact rounded, but the internal binary representation can > not be turned into the appropriate decimal (and human readable) > representation due to the finite precision. 98926650.5 is represented exactly in IEEE double; something else is mucking up the round or the display of the result, maybe both. 85227887.0 is represented exactly in IEEE double, though 85227887.01 is not. Nevertheless, there are ways to print floating point numbers readably. http://portal.acm.org/citation.cfm?id=93559 e -- Doug Currie Londonderry, NH, USA ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------