From: SourceForge.net <no...@so...> - 2009-03-16 17:07:10
|
Bugs item #2688847, was opened at 2009-03-16 13:06 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=2688847&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 7 Private: No Submitted By: Stavros Macrakis (macrakis) Assigned to: Nobody/Anonymous (nobody) Summary: float of rats rounds incorrectly Initial Comment: bfloat((2^60-1)/2^60)-1 => 0.0b0 CORRECT (fpprec=16) float((2^60-1)/2^60)-1 => -1e-16 WRONG, should be 0.0 float((2^1000-1)/2^1000)-1 => -1e-16 WRONG, should be 0.0 float(...) should give a rounded result of precisely 1.0 in these cases. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=2688847&group_id=4933 |