Project

General

Profile

Actions

Bug #11293

closed

Integer('0123') => 83

Added by mattdipasquale (Matthew Mario Di Pasquale) almost 9 years ago. Updated about 7 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
[ruby-core:69699]

Description

Is this the correct behavior?

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

Shouldn't the return value be 123?

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0