Just give it a number (not too large or it breaks) and it'll return that number in hexadecimal.
I made this because I wanted to be able to turn RGB values to HEX codes whilst in Scratch. It's actually rather simple, especially when it's broken down into several functions as I had it originally, but for the goal of using the least number of blocks I crushed it all down into a single function. Here's the sources I read: https://www.permadi.com/tutorial/numDecToHex/ https://www.rapidtables.com/convert/color/how-rgb-to-hex.html