Oops, no, that’s not what I need. I can do that.
I need to take “I” or “J” or whatever character and convert to hex!
or binary
irb(main):001:0> “I”[0]
=> 73
irb(main):002:0> “I”[0].to_s(16)
=> “49”
Oops, no, that’s not what I need. I can do that.
I need to take “I” or “J” or whatever character and convert to hex!
or binary
irb(main):001:0> “I”[0]
=> 73
irb(main):002:0> “I”[0].to_s(16)
=> “49”
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs