Let's say:
hex(89)
will return
0x59
Is it possible somehow to make it always return a 4 character string? I need it as 0x0059, not 0x59. Also, if the result is 0x67F for example, I need it as 0x067F and if it already is 4 characters after 0x then no zeros need to be added. How to do that?