convert string to oct : octal numbers « Number « Ruby






convert string to oct


'405'.oct                       # => 261

 

Related examples in the same category

1.Oct number with 0o
2.Convert string to integer (oct)