Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

converst string to int ruby

Integer('5abc') #=> ArgumentError: invalid value for Integer(): "5abc"
Integer('5') #=> 5
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #converst #string #int #ruby
ADD COMMENT
Topic
Name
3+3 =