miketx
Diamond Member
- Dec 25, 2015
- 121,556
- 70,505
- 2,645
- Banned
- #41
When I wrote my program I only used real numbers and integers which are the only kind of numbers there are.
A computer is not able to use real numbers. What's called "real" in programs is only an element of the rational numbers.
Correctly. The computer can only operate on the numbers that it represents in the form of a periodic fraction. These numbers are called rational numbers. Real numbers are rational numbers + irrational. To display an irrational number, the computer first converts it into a rational number with a large fractional part period. The rest cuts off.
Word play, how cute.