FRACPT and TRANS
8-220

Kenneth B. Wibert, Department of Chemistry, Yale
University, New Haven, Connecticut

In treating data collected using an analog-to-digital converter
it is frequently convenient to shift the number one unit to the
right and consider it a fraction having the form S.XXXXX-
XXXXXX, where bit zero indicates the sign and the decimal
point is placed between bits 0 and 1. Thus, full scale of the
converter would correspond to 0.99910. FRACPT and TRANS
are two similar routines which output a number in storage as a
BCD decimal fraction. FRACPT leads to the number being
typed on the Teletype, whereas TRANS inserts the BCD repre-
sentation into a BCD string (two characters per word) which
may be typed out or displayed on a CRT screen.

Minimum Hardware:
4K PDP-8

Storage Requirement:
one page

Source Language:
MACRO-8

Catalog: July 1973