![]() |
You are not currently logged in. Are you accessing the unsecure (http) portal? Click here to switch to the secure portal. |
![]() |
Do you have permission to re-use this image? Just because scans appear on Wiktenauer does not mean that they are free to use. Wiktenauer is a 501(c)(3) nonprofit, and many of the scans we host are only licensed for nonprofit use. In other cases, the scans have no standard license and Wiktenauer has received special permission to host them (and can't grant that permission to anyone else). The license terms appear in the Copyright and License Terms box at the bottom of the page that sent you here. When in doubt, always check with the museum or library that owns a manuscript before publishing or otherwise reusing its scans. |
Template:Hex2dec/2/doc
< Template:Hex2dec | 2
Jump to navigation
Jump to search
![]() |
This is a documentation subpage for Template:Hex2dec/2. It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
This subtemplate of {{hex2dec}} converts a single character of a hex string into its decimal equivalent. This subtemplate is not meant to be called directly.
Usage
{{hex2dec/2|0xFFADBDEC|4}}
--> 10
because on position 4 is value A and Ahex=10dec. Position count is from left, with the first position=0 (not 1).
This template works in conjunction with the following templates:
- {{Hex2dec/main}}: does the actual multiplication and addition to create a decimal number.
- {{Hex2dec/1}}: returns the length of the hexadecimal string.