Template:Hex2/doc


 * Description of use
 * Converts an 8-bit number to hexadecimal using two digits, useful for formating RGB color components.
 * This template can be substituted.


 * Input
 * one parameter, numeric in the range 0..255 (larger numbers will wrap around)


 * Output
 * a two-digit hex number


 * Examples
 * gives
 * gives 00
 * gives
 * gives 7B
 * gives
 * gives FF


 * See also
 * Hex3 for formating 3 RGB components at once.