Issue #10332 has been reported by Tsuyoshi Sawada. ---------------------------------------- Feature #10332: Rational literal for mixed fractions https://bugs.ruby-lang.org/issues/10332 * Author: Tsuyoshi Sawada * Status: Open * Priority: Normal * Assignee: * Category: * Target version: ---------------------------------------- Current behavior of rational literal and `String#to_r` does not recognize mixed fractions. Mixed fraction is not rare, and is frequently used in places such as US length measurement.  I propose that rational literal and `String#to_r` should be extended to handle mixed fractions. Perhaps something like: ~~~ruby 8 1/2r #=> (17/2) "8 1/2".to_r #=> (17/2) ~~~ or ~~~ruby (8 1/2)r #=> (17/2) ~~~ -- https://bugs.ruby-lang.org/