Convert string to integer with error

2019-06-16 02:08栏目:技术创新

'6'.to_i(2)                       # => 0
'0'.to_i(1)
# ArgumentError: illegal radix 1
40.to_s(37)
# ArgumentError: illegal radix 37

版权声明:本文由新浦京娱乐站_新浦京娱乐场官网_新浦京娱乐发布于技术创新,转载请注明出处:Convert string to integer with error