forked from mirrors/nixpkgs
00022fbeda
`toHex` converts the given positive integer to a string of the hexadecimal representation of that integer. For example: ``` toHex 0 => "0" toHex 16 => "10" toHex 250 => "FA" ``` `toBase base i` converts the positive integer `i` to a list of it digits in the given `base`. For example: ``` toBase 10 123 => [ 1 2 3 ] toBase 2 6 => [ 1 1 0 ] toBase 16 250 => [ 15 10 ] ``` |
||
---|---|---|
.. | ||
modules | ||
check-eval.nix | ||
maintainers.nix | ||
misc.nix | ||
modules.sh | ||
release.nix | ||
systems.nix |