in reply to Okay! What!?!?!?
I don’t rightly know what the (stringwise ...) eq operator would do in this obviously-numeric case, and I would not want to find out, even if someone proclaimed that it “worked.”
Clearly, this is just a prototypical example of why you can never (in any programming language other than COBOL) test a fractional number for “exact equality.” Even if the binary value rounds to exactly the same sequence of printed digits, and thus “to our human eyes” is ‘the same number,’ it is the binary values that are being compared by the computer, and these are almost certain to be “unequal.”
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Okay! What!?!?!?
by moritz (Cardinal) on Apr 23, 2014 at 05:10 UTC | |
by Anonymous Monk on Apr 24, 2014 at 02:25 UTC |