Get the character value of an integer with chr: : Convert from Integer « Number « Ruby






Get the character value of an integer with chr:


97.chr # => "a"
98.chr # => "b"
125.chr # => "}"
126.chr # => "~"
127.chr # => "\177"

 








Related examples in the same category