I am trying to convert an Int64 value into hex using String(format:)
Here is an example:
let value: Int64 = 431181030500
let stringHex = String(format: "%02X", value) //returns 64646464 instead of the expected 6464646464
Has anyone experienced this? Is there some other way of converting to hex in swift?