I tried this with sprintf:
On output it only adds the leading zeros if the resulting hex number has a letter in it (A-F) if it doesn’t (e.g. the number ’8′ or ’112′ etc.) then it doesn’t add the leading zeros.
I attached the patch to check it out.
Max numbers don’t have leading zeros. Max symbols can have leading zeros. When your output has symbol A-F in it it will be output as a symbol, so it will have the leading zero. If you change your sprintf format string to "sprintf symout %.3X" it will always output a symbol.
further testing shows it only works as long as you put a character or string in front of it.
e.g. sprintf test%.3X works but sprintf %.3X does not
oops replied at the same time as your message arrived. works now!
C74 RSS Feed | © Copyright Cycling '74