I have a question. How can i convert a number from decimal to hex in ruby, only with rubby built in functions? An example will be apreciated, or even a link to some documentation. I have read the Official Manual, many many times, i haven't found nothing to meet my request. I used even ".pack" and ".unpack" but they don't work.
EX:
i have a number "nr=37"
how do i find oout the value in hexa on nr?
Thank You
EX:
i have a number "nr=37"
how do i find oout the value in hexa on nr?
Thank You