[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>
Currently, ruby/spec is maintained mostly by individuals and enjoys the
13 messages
2016/12/13
[#78963] Re: ruby/spec needs help from CRuby committers
— Urabe Shyouhei <shyouhei@...>
2017/01/04
I did ask attendees of last developer meeting to join this
[#78642] Re: ruby/spec needs help from CRuby committers
— Eric Wong <normalperson@...>
2016/12/14
Benoit Daloze <eregontp@gmail.com> wrote:
[ruby-core:78907] [Ruby trunk Bug#13088] Strange behavior in String.to_i
From:
mfbmina@...
Date:
2016-12-29 11:10:45 UTC
List:
ruby-core #78907
Issue #13088 has been reported by Matheus Mina. ---------------------------------------- Bug #13088: Strange behavior in String.to_i https://bugs.ruby-lang.org/issues/13088 * Author: Matheus Mina * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: 2.4.0 * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- When I try convert a string to integer using .to_i method it has a strange behavior. It converts the first number in the string to integer. Is it correct? I think the expected behavior should be convert to a integer if it has only numbers and return 0 if has a non-digit char on it. Thank you! ---Files-------------------------------- Screen Shot 2016-12-29 at 08.58.11.png (32.5 KB) -- 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>