Programming, ruby IT Nursery Converting an integer to a hexadecimal string in Ruby Is there a built in way to convert an integer in Ruby into its hexadecimal equivalent? Something like the opposite of String#to_i: "0A".to_i(16) #=>10 Like perhaps: "0A".hex #=>10 I... May 28, 2022 0 Comments