Server IP : 66.29.132.122 / Your IP : 3.144.88.35 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/opt/alt/ruby18/share/ri/1.8/system/String/ |
Upload File : |
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns the result of interpreting leading characters in <em>str</em> as an integer base <em>base</em> (between 2 and 36). Extraneous characters past the end of a valid number are ignored. If there is not a valid number at the start of <em>str</em>, <tt>0</tt> is returned. This method never raises an exception. - !ruby/struct:SM::Flow::VERB body: " "12345".to_i #=> 12345\n "99 red balloons".to_i #=> 99\n "0a".to_i #=> 0\n "0a".to_i(16) #=> 10\n "hello".to_i #=> 0\n "1100101".to_i(2) #=> 101\n "1100101".to_i(8) #=> 294977\n "1100101".to_i(10) #=> 1100101\n "1100101".to_i(16) #=> 17826049\n" full_name: String#to_i is_singleton: false name: to_i params: | str.to_i(base=10) => integer visibility: public