Template:Hex2/doc

Usage
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