Re:A “simple” 3rd grade problem
by jimmahoney on Saturday May 04, 2013 @06:41PM
(#5656576)
In terms of your fraction problem, given that
this is HackerNews I'm surprised that no one
claimed that the answer should be zero. :)
[ Parent
| on HN ]
You must not be using python 3, then.
Re:A “simple” 3rd grade problem
by jimmahoney on Sunday May 05, 2013 @02:12AM
(#5657610)
Perhaps you prefer ruby?
$ irb
>> 12/13 + 7/8
=> 0Yet another reason Lisp > Python!
[1]> (+ (/ 12 13) (/ 7 8))
187/104
Re:A “simple” 3rd grade problem
by jimmahoney on Sunday May 05, 2013 @02:11AM
(#5657605)
(If (speak you (polish reverse) naturally)).
Actually, that would be Polish, not Reverse Polish.
Re:A “simple” 3rd grade problem
by jimmahoney on Monday May 06, 2013 @01:44AM
(#5661054)
Yes - my mistake.