Example 1: ruby string to int a = "42" # => '42' a.to_i # => 42 # But if you might not have a number in your String, you should rather # use this instead, ...
確定! 回上一頁