A subroutine for rounding of numbers. Program in BASIC and for programmable calculators.
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.
D000465:Algorithms; D008432:Mathematical Computing; D008838:Microcomputers; D009716:Numerical Analysis, Computer-Assisted; D011381:Programming Languages; D012984:Software; D012985:Software Design