toHexString
lib.toHexString
Docs pulled from | This Revision | 22 minutes ago
Nixpkgs manual
Convert the given positive integer to a string of its hexadecimal representation.
Type
toHexString :: Int -> String
Examples
lib.trivial.toHexString usage example
toHexString 0 => "0"
toHexString 16 => "10"
toHexString 250 => "FA"
Noogle detected
Implementation
The following is the current implementation of this function.
i: lib.concatMapStrings toHexDigit (toBaseDigits 16 i)