Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 1987;17(1):45-51.
doi: 10.1016/0010-4825(87)90033-3.

A subroutine for rounding of numbers. Program in BASIC and for programmable calculators

A subroutine for rounding of numbers. Program in BASIC and for programmable calculators

U A Brodthagen. Comput Biol Med. 1987.

Abstract

The present programs were developed to compensate for the poor precision of some microcomputer-BASICs, and to avoid printing of the non-significant figures of a numerical result. The program will round any number to a user defined number of significant digits. The subroutine is well suited for statistical programs. It enables the programmer to control the precision and format of numerical output. The program is given in two versions, one in BASIC and one for the programmable calculator TI-59.

PubMed Disclaimer

Similar articles

LinkOut - more resources