发明名称 Methods and arrangements to correct for double rounding errors when rounding floating point numbers to nearest even
摘要 Methods and arrangements to correct for double rounding errors when rounding floating point numbers to nearest even are described. Embodiments include transformations, code, state machines or other logic to perform a floating point operation on one or more floating point numbers of precision P1 in base b, producing positive result res0 of precision greater than precision P1; rounding positive result res0 to precision P1 to the nearest even, producing positive result res1; and rounding the result res1 to precision P2 to the nearest even, where P2 is narrower than P1, producing result res2. The embodiments may also include correcting res2 for double rounding errors. The correcting may include determining that res1 is midway between two consecutive floating point numbers of precision P1, the larger (smaller) being res2, determining that rounding res0 to produce res1 involved rounding up (down), and decrementing (incrementing) the significand of res2 to obtain the corrected result res2'.
申请公布号 US2009172065(A1) 申请公布日期 2009.07.02
申请号 US20070006145 申请日期 2007.12.31
申请人 CORNEA-HASEGAN MARIUS 发明人 CORNEA-HASEGAN MARIUS
分类号 G06F7/483 主分类号 G06F7/483
代理机构 代理人
主权项
地址