Ruby: Convert to String

To convert a number to a string in Ruby, do this:

40.to_s
, , , ,

Leave a Reply

You must be logged in to post a comment.