Brodthagen U A
Comput Biol Med. 1987;17(1):45-51. doi: 10.1016/0010-4825(87)90033-3.
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.
开发当前这些程序是为了弥补某些微型计算机BASIC语言精度较差的问题,并避免打印数值结果中的无意义数字。该程序会将任何数字四舍五入到用户定义的有效数字位数。这个子程序非常适合统计程序。它使程序员能够控制数值输出的精度和格式。该程序有两个版本,一个是BASIC语言版本,另一个是适用于可编程计算器TI - 59的版本。