input type input example value method output type output example value
integer 270 to_s string “270”
string “270.1-somehitng” to_i integer 270
string “270.1-something” to_f float 270.1

That's it for this post, thanks for reading!