News for hackers. Stuff that matters.
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. :)

  $ python
  >>> 12/13 + 7/8
  0
Re:A “simple” 3rd grade problem by mrdmnd on Saturday May 04, 2013 @06:59PM (#5656639)
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
  => 0
Re:A “simple” 3rd grade problem by reeses on Saturday May 04, 2013 @09:31PM (#5657069)
Yet 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)).
Re:A “simple” 3rd grade problem by reeses on Sunday May 05, 2013 @08:02PM (#5660287)
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.
Re:A “simple” 3rd grade problem by reeses on Monday May 06, 2013 @04:41AM (#5661420)
Well, you should redo it in forth just to confuse everyone else. :-)