Cargando…

Integer Representation of Decimal Numbers for Exact Computations

A scheme is presented and software is documented for representing as integers input decimal numbers that have been stored in a computer as double precision floating point numbers and for carrying out multiplications, additions and subtractions based on these numbers in an exact manner. The input dec...

Descripción completa

Detalles Bibliográficos
Autores principales: Bernal, Javier, Witzgall, Christoph
Formato: Online Artículo Texto
Lenguaje:English
Publicado: [Gaithersburg, MD] : U.S. Dept. of Commerce, National Institute of Standards and Technology 2006
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4662496/
https://www.ncbi.nlm.nih.gov/pubmed/27274918
http://dx.doi.org/10.6028/jres.111.006
_version_ 1782403167767494656
author Bernal, Javier
Witzgall, Christoph
author_facet Bernal, Javier
Witzgall, Christoph
author_sort Bernal, Javier
collection PubMed
description A scheme is presented and software is documented for representing as integers input decimal numbers that have been stored in a computer as double precision floating point numbers and for carrying out multiplications, additions and subtractions based on these numbers in an exact manner. The input decimal numbers must not have more than nine digits to the left of the decimal point. The decimal fractions of their floating point representations are all first rounded off at a prespecified location, a location no more than nine digits away from the decimal point. The number of digits to the left of the decimal point for each input number besides not being allowed to exceed nine must then be such that the total number of digits from the leftmost digit of the number to the location where round-off is to occur does not exceed fourteen.
format Online
Article
Text
id pubmed-4662496
institution National Center for Biotechnology Information
language English
publishDate 2006
publisher [Gaithersburg, MD] : U.S. Dept. of Commerce, National Institute of Standards and Technology
record_format MEDLINE/PubMed
spelling pubmed-46624962016-06-03 Integer Representation of Decimal Numbers for Exact Computations Bernal, Javier Witzgall, Christoph J Res Natl Inst Stand Technol Article A scheme is presented and software is documented for representing as integers input decimal numbers that have been stored in a computer as double precision floating point numbers and for carrying out multiplications, additions and subtractions based on these numbers in an exact manner. The input decimal numbers must not have more than nine digits to the left of the decimal point. The decimal fractions of their floating point representations are all first rounded off at a prespecified location, a location no more than nine digits away from the decimal point. The number of digits to the left of the decimal point for each input number besides not being allowed to exceed nine must then be such that the total number of digits from the leftmost digit of the number to the location where round-off is to occur does not exceed fourteen. [Gaithersburg, MD] : U.S. Dept. of Commerce, National Institute of Standards and Technology 2006 2006-04-01 /pmc/articles/PMC4662496/ /pubmed/27274918 http://dx.doi.org/10.6028/jres.111.006 Text en https://creativecommons.org/publicdomain/zero/1.0/ The Journal of Research of the National Institute of Standards and Technology is a publication of the U.S. Government. The papers are in the public domain and are not subject to copyright in the United States. Articles from J Res may contain photographs or illustrations copyrighted by other commercial organizations or individuals that may not be used without obtaining prior approval from the holder of the copyright.
spellingShingle Article
Bernal, Javier
Witzgall, Christoph
Integer Representation of Decimal Numbers for Exact Computations
title Integer Representation of Decimal Numbers for Exact Computations
title_full Integer Representation of Decimal Numbers for Exact Computations
title_fullStr Integer Representation of Decimal Numbers for Exact Computations
title_full_unstemmed Integer Representation of Decimal Numbers for Exact Computations
title_short Integer Representation of Decimal Numbers for Exact Computations
title_sort integer representation of decimal numbers for exact computations
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4662496/
https://www.ncbi.nlm.nih.gov/pubmed/27274918
http://dx.doi.org/10.6028/jres.111.006
work_keys_str_mv AT bernaljavier integerrepresentationofdecimalnumbersforexactcomputations
AT witzgallchristoph integerrepresentationofdecimalnumbersforexactcomputations