Digital computation is central to almost all scientific endeavors and has become integral to university physics education. Students collect experimental data using digital devices, process data using spreadsheets and graphical software, and develop scientific programming skills for modeling, simulation, and computational work. Issues associated with the floating-point representation of numbers are rarely explored. In this article, problems of floating point are divided into three categories: significant-figure limits, propagation of floating-point representation error, and rounding. For each category, examples are presented of unexpected ways, in which the digital representation of floating-point numbers can impact the veracity of scientific results. These examples cover aspects of classical dynamics, numerical integration, cellular automata, statistical analysis, and digital timing. Suggestions are made for curriculum enhancement and project-style investigations that reinforce the issues covered at a level suitable for physics undergraduate students.
Skip Nav Destination
,
Article navigation
August 2021
PAPERS|
August 01 2021
The floating point: Tales of the unexpected Available to Purchase
David A. Faux;
David A. Faux
a)
Faculty of Engineering and Physical Sciences, University of Surrey
, Guildford GU2 7XH, United Kingdom
Search for other works by this author on:
Janet Godolphin
Janet Godolphin
Faculty of Engineering and Physical Sciences, University of Surrey
, Guildford GU2 7XH, United Kingdom
Search for other works by this author on:
David A. Faux
a)
Janet Godolphin
Faculty of Engineering and Physical Sciences, University of Surrey
, Guildford GU2 7XH, United Kingdom
a)
Electronic mail: [email protected]
Am. J. Phys. 89, 806–814 (2021)
Article history
Received:
May 13 2020
Accepted:
March 08 2021
Citation
David A. Faux, Janet Godolphin; The floating point: Tales of the unexpected. Am. J. Phys. 1 August 2021; 89 (8): 806–814. https://doi.org/10.1119/10.0003915
Download citation file:
Pay-Per-View Access
$40.00
Sign In
You could not be signed in. Please check your credentials and make sure you have an active account and try again.
Citing articles via
Temperature as joules per bit
Charles Alexandre Bédard, Sophie Berthelette, et al.
All objects and some questions
Charles H. Lineweaver, Vihan M. Patel
Internal ballistics of the sling
Mark Denny
Ergodic Lagrangian dynamics in a superhero universe
I. L. Tregillis, George R. R. Martin
The right way to introduce complex numbers in damped harmonic oscillators
Jason Tran, Leanne Doughty, et al.
A first encounter with exceptional points in a quantum model
C. A. Downing, V. A. Saroka
Related Content
The corpus of Lampung’s following stories in 2013 curriculum text learning prospects
AIP Conf. Proc. (December 2023)
Games of life
Am. J. Phys. (May 2020)
Fairy tale as a part of development of communication about nature at nursery school
AIP Conf. Proc. (May 2022)
The floating point: Rounding error in timing devices
Am. J. Phys. (August 2021)
LoCoSV: Logically consistent story visualization with sequential conditional GaN
AIP Conf. Proc. (December 2023)