5 ms·
In terms of your fraction problem, given that this is HackerNews I'm surprised that no one claimed that the answer should be zero. :) $ python >>> 12/13 +
by jimmahoney 13y ago
In terms of your fraction problem, given that
this is HackerNews I'm surprised that no one
claimed that the answer should be zero. :)
$ python
>>> 12/13 + 7/8
0
- mrdmnd 13y agoYou must not be using python 3, then.
- jimmahoney 13y agoPerhaps you prefer ruby? $ irb >> 12/13 + 7/8 => 0
- reeses 13y agoYet another reason Lisp > Python! [1]> (+ (/ 12 13) (/ 7 8)) 187/104
- jimmahoney 13y ago(If (speak you (polish reverse) naturally)).
- reeses 13y agoActually, that would be Polish, not Reverse Polish.
- jimmahoney 13y agoYes - my mistake.
- reeses 13y agoWell, you should redo it in forth just to confuse everyone else. :-)