I agree for this simple case there are solutions available in the system. My unit:
- can do it in any base 2-16
- can do any length number
- and can do arithmetic with it
So, as said above, for a simple conversion it is a bit of overkill.
@BobDog: Nice to do repeated conversion for long numbers if both are bases 2^n. (What would you like me to check?).
@winnin: In your example, you do not need to multiply by 1. I only used it to indicate that the result I want to see in base 2. However that is not necessary in my unit either, if one is willing to use a function:
s := ConvertNumberToBinString('$123456789ABCDEF0123456789ABCDEF') also works.