Convert string to integer (oct) : octal numbers « Number « Ruby






Convert string to integer (oct)


'405'.to_i(8)                   # => 261

 

Related examples in the same category

1.Oct number with 0o
2.convert string to oct