Get the corresponding char : Convert to Char « Number « Ruby






Get the corresponding char


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

 








Related examples in the same category

1.Convert integer to char
2.Get next from a char converted from an integer