Comparison between binary64 and decimal64 floating-point numbers - Archive ouverte HAL Access content directly
Conference Papers Year : 2013

Comparison between binary64 and decimal64 floating-point numbers

(1, 2) , (1, 2) , (1, 2) , (3)


We introduce an algorithm that allows one to quickly compare a binary64 floating-point (FP) number and a decimal64 FP number, assuming the "binary encoding" of the decimal formats specified by the IEEE 754-2008 standard for FP arithmetic is used. It is a two-step algorithm: a first pass, based on the exponents only, makes it possible to quickly eliminate most cases, then when the first pass does not suffice, a more accurate second pass is required. We provide an implementation of several variants of our algorithm, and compare them.
Fichier principal
Vignette du fichier
Compar-Arith.pdf (283.93 Ko) Télécharger le fichier
Vignette du fichier
compbindec-1.0.tar.xz (7.05 Mo) Télécharger le fichier
Origin : Files produced by the author(s)
Format : Other

Dates and versions

ensl-00737881 , version 1 (03-10-2012)
ensl-00737881 , version 2 (07-02-2013)
ensl-00737881 , version 3 (11-02-2013)
ensl-00737881 , version 4 (11-02-2013)



Nicolas Brisebarre, Marc Mezzarobba, Jean-Michel Muller, Christoph Lauter. Comparison between binary64 and decimal64 floating-point numbers. 21st IEEE Symposium on Computer Arithmetic, Apr 2013, Austin, TX, United States. pp.145-152, ⟨10.1109/ARITH.2013.23⟩. ⟨ensl-00737881v4⟩
892 View
899 Download



Gmail Facebook Twitter LinkedIn More