There are times when the ability to convert to/from other than base 10 would be really helpful. We can already do this to some extent with hexadecimal:
integer FLAG_A = 0x0400; // bit 10; in decimal 1024
However, there's no way to take that integer value of 1042 and display it in hex notation. most of us who script could probably do that one in our heads, but what about where you don't KNOW what the value will be? Or it's a value like, say 11,591?
Similarly, if we want to enter a value in binary, there's no way to do so; nor is there a way to convert an integer to binary notation.
Therefor I propose 3 functions:
string llInt2Hex( integer value ) to accept an integer and output the hex representation; e.g., llInt2Hex( 11591 ) would produce '0x2D47'
Similarly, I propose a binary notation - say leading with 0b instead of 0x - to allow entry of integers in binary form; and an llInt2Bin() function that would accept an integer value and output a string with the binary representation, preferably grouped in quads - e.g., llInt2Bin( 11591 ) would produce '0x0010 1101 0100 0111'