NotesFAQContact Us
Collection
Advanced
Search Tips
50 Years of ERIC
50 Years of ERIC
The Education Resources Information Center (ERIC) is celebrating its 50th Birthday! First opened on May 15th, 1964 ERIC continues the long tradition of ongoing innovation and enhancement.

Learn more about the history of ERIC here. PDF icon

Back to results
Peer reviewed Peer reviewed
Direct linkDirect link
ERIC Number: EJ738594
Record Type: Journal
Publication Date: 2006-Jul
Pages: 25
Abstractor: Author
Reference Count: 16
ISBN: N/A
ISSN: ISSN-0731-9258
A Treatment of Computational Precision, Number Representation, and Large Integers in an Introductory Fortran Course
Richardson, William H., Jr.
Journal of Computers in Mathematics and Science Teaching, v25 n3 p213-237 Jul 2006
Computational precision is sometimes given short shrift in a first programming course. Treating this topic requires discussing integer and floating-point number representations and inaccuracies that may result from their use. An example of a moderately simple programming problem from elementary statistics was examined. It forced students to confront problems associated with number representations and investigate appropriate ways to circumvent them. In the example, integers were represented using two's complement form, and floating-point numbers according to the Institute of Electrical and Electronics Engineers (IEEE) standard 754, both using 32 bits. Floating-point number representation (64-bit) was necessary to achieve results accurate to two decimal positions. Finally, Fortran 90/95 subprograms were written to implement arbitrarily precise operations with large integers. Students in an introductory course can write subprograms for addition and subtraction of large integers. More sophisticated subprograms that depend on the fast Fourier transform were written to perform multiplication and division of large integers. These subprograms are more suited to an advanced programming or numerical analysis course. The subprograms written to perform large-integer operations were used to determine exact solutions for the statistical problem. (Contains 5 tables and 6 figures.)
Association for the Advancement of Computing in Education. P.O. Box 1545, Chesapeake, VA 23327-1545. Tel: 757-366-5606; Fax: 703-997-8760; e-mail: info@aace.org; Web site: http://www.aace.org.
Publication Type: Journal Articles; Reports - Descriptive
Education Level: N/A
Audience: N/A
Language: English
Sponsor: N/A
Authoring Institution: N/A
Identifiers: N/A