From: james.b.crigler@... Date: 2017-01-25T01:13:28+00:00 Subject: [ruby-core:79254] [Ruby trunk Bug#13157] Rational doc bug Issue #13157 has been reported by Jim Crigler. ---------------------------------------- Bug #13157: Rational doc bug https://bugs.ruby-lang.org/issues/13157 * Author: Jim Crigler * Status: Open * 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: