arrow
Return

Comparison between Binary and Decimal Floating-Point Numbers

delete2016-07-01
delete6
delete
OA
AI
N
Nicolas Brisebarre *
C
Christoph Lauter
M
Marc Mezzarobba
J
Jean‐Michel Muller
DOI:10.1109/TC.2015.2479602delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
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.
Keywords:
Floating-point arithmetic
comparisons
radix-10 arithmetic
binary arithmetic

Journal

IEEE Transactions on Computers cover
IEEE Transactions on Computers
IF:
3.8
Papers:
5.4K
Citations:
9.8K

Organization

C
centre national de la recherche scientifique (cnrs)
Scholars:
24.5W
Papers: 18.2W
Citations: 279
E
ecole normale superieure de lyon (ens de lyon)
Scholars:
5.1K
Papers: 3.6K
Citations: 6
Cited Papers

Cited Papers

errShare
errSave
A Software Implementation of the IEEE 754R Decimal Floating-Point Arithmetic Using the Binary Encoding Format
err2009-02-01
err27
errOAAI
errCornea, Marius; Harrison, John; Anderson, Cristina; Tang, Ping Tak Peter; Schneider, Eric; Gvozdev, Evgeny
errShare
errSave