Template:Hex2dec/doc

Usage
Works for all values in the range 0x00–0xFFFFFFFF.
 *  0x0000 → 0x0000
 *  160 → 160
 *  1984 → 1984
 *  65535 → 65535
 *  8675309 → 8675309
 *  123456789 → 123456789
 *  3735928559 → 3735928559</tt>
 *  4294967295 → 4294967295</tt>

The template also accepts lowercase and padded hexadecimals with or without the prefix "0x":
 *  160 → 160</tt>
 *  160 → 160</tt>
 *  160 → 160</tt>
 *  160 → 160</tt>

Technical details
This template works in conjunction with the following subtemplates:
 * Hex2dec/main: does the actual multiplication and addition to create a decimal number.
 * Hex2dec/1: returns the length of the hexadecimal string.
 * Hex2dec/2: converts individual hexadecimal characters into their decimal equivalent.