How can I convert a decimal number to hex and assign the result to a scalar?