| ▲ | andrewflnr 14 hours ago | ||||||||||||||||||||||||||||||||||||||||
You can't actually pick real numbers at random. You especially can't do it on a computer, since all numbers representable in a finite number of digits or bits are rational. | |||||||||||||||||||||||||||||||||||||||||
| ▲ | teraflop 5 hours ago | parent [-] | ||||||||||||||||||||||||||||||||||||||||
Careful -- that statement is half true. It's true that no matter what symbolic representation format you choose (binary or otherwise) it will never be able to encode all irrational numbers, because there are uncountably many of them. But it's certainly false that computers can only represent rational numbers. Sure, there are certain conventional formats that can only represent rational numbers (e.g. IEEE-754 floating point) but it's easy to come up with other formats that can represent irrationals as well. For instance, the Unicode string "√5" is representable as 4 UTF-8 bytes and unambiguously denotes a particular irrational. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||