3 ms·
> How do they represent real numbers? If anything, they represent rational numbers. That's an interesting philosophical question. Does M_PI represent a rationa
by astrange 4y ago
> How do they represent real numbers? If anything, they represent rational numbers.
That's an interesting philosophical question. Does M_PI represent a rational number?
(M_PI isn't mentioned in my copy of the C spec, unless I just can't find it.)
- wadd1e 4y agodoes it not have to represent a rational approximation of Pi? Real numbers in the set theoretic sense are defined as limits of Cauchy sequences[0], and since we can't quite store an infinite sequence, it has to be a finite approximation due to the limitations of the real world. [0]: https://en.wikipedia.org/wiki/Cauchy_sequence https://en.wikipedia.org/wiki/Cauchy_sequence
- astrange 4y agoIt does after it's assigned to a variable, but maybe it doesn't before that.