Abstract
Most modern high-level languages offer you a choice of integers or floating point arithmetic. Generally, so far as the programmer is concerned, that choice is dictated by the kinds of numbers he or she wants to play with; if you want fractional values, you’ve got to use float.
“What day of the month is it?” he said, turning to Alice: he had taken his watch out of his pocket, and was looking at it uneasily, shaking it every now and then, and holding it to his ear.
Alice considered a little, and then said, “the fourth”.
“Two days wrong!” sighed the Hatter. “I told you butter wouldn’t suit the works!” he added, looking angrily at the March Hare.
“It was the best butter,” the March Hare meekly replied.
Alice’s Adventures in Wonderland
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 1987 Springer-Verlag New York Inc.
About this chapter
Cite this chapter
Jones, R., Stewart, I. (1987). Rational Arithmetic. In: The Art of C Programming. Springer, New York, NY. https://doi.org/10.1007/978-1-4613-8685-8_14
Download citation
DOI: https://doi.org/10.1007/978-1-4613-8685-8_14
Publisher Name: Springer, New York, NY
Print ISBN: 978-0-387-96392-1
Online ISBN: 978-1-4613-8685-8
eBook Packages: Springer Book Archive