to_int
to_i
数値型をそのまま返す
Integerクラスのインスタンスメソッド
C言語ではto_intはto_iのシノニムとなっている。
1 2 3 4 5 |
> 1.to_i => 1 > 1.to_int => 1 |
参考
スポンサードリンク
数値型をそのまま返す
Integerクラスのインスタンスメソッド
C言語ではto_intはto_iのシノニムとなっている。
1 2 3 4 5 |
> 1.to_i => 1 > 1.to_int => 1 |
スポンサードリンク