Comparison between binary and decimal floating-point numbers - Archive ouverte HAL Access content directly
Journal Articles IEEE Transactions on Computers Year : 2016

Comparison between binary and decimal floating-point numbers

Abstract

We introduce an algorithm to compare a binary floating-point (FP) number and a decimal FP number, assuming the "binary encoding" of the decimal formats is used, and with a special emphasis on the basic interchange formats specified by the IEEE 754-2008 standard for FP arithmetic. It is a two-step algorithm: a first pass, based on the exponents only, quickly eliminates most cases, then, when the first pass does not suffice, a more accurate second pass is performed. We provide an implementation of several variants of our algorithm, and compare them.
Fichier principal
Vignette du fichier
Compar-IEEETC.pdf (266.92 Ko) Télécharger le fichier
compbindec-2.1.zip (208.84 Ko) Télécharger le fichier
Origin : Files produced by the author(s)
Format : Other
Origin : Files produced by the author(s)
Comment : Implementation
Loading...

Dates and versions

hal-01021928 , version 1 (09-07-2014)
hal-01021928 , version 2 (25-06-2015)

Identifiers

Cite

Nicolas Brisebarre, Christoph Lauter, Marc Mezzarobba, Jean-Michel Muller. Comparison between binary and decimal floating-point numbers. IEEE Transactions on Computers, 2016, 65 (7), pp.2032-2044. ⟨10.1109/TC.2015.2479602⟩. ⟨hal-01021928v2⟩
545 View
2005 Download

Altmetric

Share

Gmail Facebook Twitter LinkedIn More