Main Article Content

Algorithm for output of floating-point numbers in fixed-point form


CB Ndeekor

Abstract

Input/output of data items and information are very common operations performed on computer systems. Various data types require special ways to perform these operations on them. Floating-point numbers are no exceptions. Presented in this paper is an algorithm with which floating-point numbers can be converted to their American Standard Code for Information Interchange (ASCII) equivalents in fixed-point form ready for output. The algorithm is so written that it can be implemented easily and requires just the address of the buffer to contain the ASCII equivalent and the number of fractional digits desired in the result.

Journal of Applied Sciences and Environmental Management Vol. 9(3) 2005: 87-89

Journal Identifiers


eISSN: 2659-1499
print ISSN: 2659-1502