Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
A general character to integer conversion method
Parker J. Software--Practice & Experience15 (9):761-766,1985.Type:Article
Date Reviewed: Mar 1 1986

The paper deals with the widely known problem of converting a string of characters into the internal integer form. It is shown that, unfortunately, most programs fail to detect integer overflow correctly. Many suggestive examples taken from undergraduate computer science texts or from currently available compilers illustrate the author’s opinion. A method of correct conversion of character to integer is presented and a Euclid module that processes both positive and negative integers of the ADA-based number variety is also given.

The problems presented in this paper are of real interest for all computer scientists, and especially for computer programmers who implement conversion routines. The brevity and clarity of the paper should also be pointed out.

Perhaps it would be interesting to pay attention to the reverse problem: the conversion of the internal integer form to signed decimal representation. This case is also, in my opinion, not correctly treated in some compilers in use. This problem was originally signaled by Nicolescu in a Letter to the Editor [1].

Reviewer:  Marian Gheorghe Review #: CR109975
1) Nicolescu, R.Letter to the editor, SIGPLAN Not. 14 (1979), 14.
Bookmark and Share
 
Miscellaneous (D.1.m )
 
 
Ada (D.3.2 ... )
 
Would you recommend this review?
yes
no
Other reviews under "Miscellaneous": Date
Integrating APL with symbol manipulation, numerical software and graphics
Apiola H., Peltola P. ACM SIGAPL APL Quote Quad 20(4): 10-17, 1990. Type: Article
Aug 1 1992
An improved parallel thinning algorithm
Holt C., Stewart A., Clint M., Perrott R. Communications of the ACM 30(2): 156-160, 1987. Type: Article
Aug 1 1987
On the complexity of recursion in problem-solving
Er M. International Journal of Man-Machine Studies 20(6): 537-544, 1984. Type: Article
May 1 1985
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy