FunctionsintToHexOn this pageintToHex Converts an integer to a hexadecimal string. Parameters ParameterTypeOptionalDefaultDescriptionintnumberfalseThe integer to convert. Returns string Example intToHex(16777215); // "#ffffff"