When double rounding is odd - Archive ouverte HAL Access content directly
Conference Papers Year : 2004

When double rounding is odd

Sylvie Boldo
Guillaume Melquiond


Many general purpose processors (including Intel's) may not always produce the correctly rounded result of a floating-point operation due to double rounding. Instead of rounding the value to the working precision, the value is first rounded in an intermediate extended precision and then rounded in the working precision; this often means a loss of accuracy. We suggest the use of rounding to odd as the first rounding in order to regain this accuracy: we prove that the double rounding then gives the correct rounding to the nearest value. To increase the trust on this result, as this rounding is unusual and this property is surprising, we formally proved this property using the Coq automatic proof checker.
Fichier principal
Vignette du fichier
BolMel.pdf (118.74 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

inria-00070603 , version 1 (19-05-2006)
inria-00070603 , version 2 (05-12-2014)


  • HAL Id : inria-00070603 , version 2


Sylvie Boldo, Guillaume Melquiond. When double rounding is odd. 17th IMACS World Congress, Jul 2005, Paris, France. pp.11. ⟨inria-00070603v2⟩
580 View
574 Download


Gmail Facebook X LinkedIn More