The to_upper() function returns a string, so your example can be simplified: print to_upper(fmt("%x",num)); On 2/15/17 1:41 PM, Mike Dopheide wrote: > Then what Daniel said is your way forward, if you need capital letters, > something like this would work: > > local num: count = 32154; > print fmt("%s",to_upper(fmt("%x",num))); > > -Dop >