Reference/IntFmt
From NSIS Wiki
IntFmt
user_var(output) format numberstring
Formats the number in "numberstring" using the format "format", and sets the output to user variable $x. Example format strings include "%08X" "%u"
IntFmt $0 "0x%08X" 195948557 IntFmt $0 "%c" 0x41