I have a small program that converts a set of decimal numbers into string. What I can do is convert it from decimal to hexadecimal then to string, but I have the feeling there is a more easier way of doing it. For example:
'1650811246' is the number I am given. The output should be 'bean'. The hexadecimal representation should be '6265616E'.
All my strings and hexadecimal representations of the numbers will be in a set of four if that helps.
This is essentially the reverse way of what I asked before in this thread:
It will start with a number and give me a 4-length string.
Thanks for your help! :]
'1650811246' is the number I am given. The output should be 'bean'. The hexadecimal representation should be '6265616E'.
All my strings and hexadecimal representations of the numbers will be in a set of four if that helps.
This is essentially the reverse way of what I asked before in this thread:
It will start with a number and give me a 4-length string.
Thanks for your help! :]
Comment