Issue #11293 has been updated by Matthew Di Pasquale.


Got it. Thank you. :-)

----------------------------------------
Bug #11293: Integer('0123') => 83
https://bugs.ruby-lang.org/issues/11293#change-62708

* Author: Matthew Di Pasquale
* Status: Rejected
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Is this the correct behavior?

    irb(main):001:0> Integer('0123')
    => 83

Shouldn't the return value be `123`?



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>