< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事(スレッド移動)
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Issue #10083 has been reported by joseph castro.
----------------------------------------
Feature #10083: String.to_i unexpected behavior
https://bugs.ruby-lang.org/issues/10083
* Author: joseph castro
* Status: Open
* Priority: Normal
* Assignee: ruby-core
* Category: misc
* Target version: current: 2.2.0
----------------------------------------
Hi
There's the issue:
"String".to_i => 0
This must be NIL or at least error, but no 0, because the string is not a number, also:
"10String".to_i => 10
Is not 10, because "10String" is not a number, maybe is necessary a new method to get a number from any string, because to_i is to convert into a Integer and that should return an error.
Greetings everyone
--
https://bugs.ruby-lang.org/