From: sto.mar@... Date: 2017-02-28T20:47:08+00:00 Subject: [ruby-core:79825] [Ruby trunk Bug#13157][Closed] Rational doc bug Issue #13157 has been updated by Marcus Stollsteimer. Status changed from Open to Closed Fixed with r57539 (#11752). ---------------------------------------- Bug #13157: Rational doc bug https://bugs.ruby-lang.org/issues/13157#change-63262 * Author: Jim Crigler * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: 2.3.3, 2.4.0 * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- On the ruby-doc page for Rational, the following example appears. Rational(900) + Rational(1) #=> (900/1) I think it should be Rational(900) + Rational(1) #=> (901/1) Ruby executes the expression correctly, i.e., this is documentation only. -- https://bugs.ruby-lang.org/ Unsubscribe: