Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
On converting character strings to integers
Parker J. Information Processing Letters19 (1):17-19,1984.Type:Article
Date Reviewed: Mar 1 1985

The central theme of this three-page discussion is the detection and proper handling of the potential for overflow in the context of converting an integer from its human-readable character string representation to an equivalent representation (e.g., two’s complement) more suitable for manipulation by computer.

After decrying the high frequency with which this problem is overlooked or given inadequate treatment (by computing professionals as well as by students]), the author presents and proves a proposition from which a Boolean expression that correctly detects such ovrflow potential is derived. A PASCAL code fragment incorporating this expression is presented, but it is only valid for positive integers. The case of negative integers is discussed, but it is left to the reader to integrate the separate treatment of the positive-and negative-integer cases.

Seven “references” are listed, only three of which are cited in the body of this brief paper. While additional citations and references would have been appreciated (e.g., to substantiate further the claim that “over 25 programs [were] examined . . . only one [of] which correctly checked for overflow”), this quite readable article is recommended to students and practitioners alike.

Reviewer:  W. E. Brown Review #: CR108870
Bookmark and Share
 
Primitive Data Items (E.2 ... )
 
 
Miscellaneous (D.1.m )
 
Would you recommend this review?
yes
no
Other reviews under "Primitive Data Items": Date
The Unicode standard, version 2.0
, Addison-Wesley Longman Publishing Co., Inc., Boston, MA, 1996. Type: Book (9780201483451)
Oct 1 1997

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