Difference between revisions of "Template:LSL Hex/Parse"
Jump to navigation
Jump to search
m |
|||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:in|{{lc:{{{1|}}}}}}}{{#vardefine:len|{{#expr:{{#len:{{#var:in}}}}-{{#ifeq:{{lc:{{#sub:{{#var:in}}00|0|2}}}}|0x|2|0}}}}}}{{#vardefine:in|{{#expr:{{#ifexpr:{{#var:len}} > 0|{{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-1|1}}}}{{#ifexpr:{{#var:len}} > 1| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-2|1}}}}{{#ifexpr:{{#var:len}} > 2| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-3|1}}}}{{#ifexpr:{{#var:len}} > 3| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-4|1}}}}{{#ifexpr:{{#var:len}} > 4| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-5|1}}}}{{#ifexpr:{{#var:len}} > 5| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-6|1}}}}{{#ifexpr:{{#var:len}} > 6| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-7|1}}}}{{#ifexpr:{{#var:len}} > 7| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-8|1}}}}{{#ifexpr:{{#var:len}} > 8| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-9|1}}}}{{#ifexpr:{{#var:len}} > 9| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-10|1}}}}{{#ifexpr:{{#var:len}} > 10| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-11|1}}}}{{#ifexpr:{{#var:len}} > 11| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-12|1}}}}{{#ifexpr:{{#var:len}} > 12| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-13|1}}}}{{#ifexpr:{{#var:len}} > 13| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-14|1}}}}{{#ifexpr:{{#var:len}} > 14| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-15|1}}}}{{#ifexpr:{{#var:len}} > 15| + 16 * {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-16|1}}}} }} ) }} ) }} ) }} ) }} ) }} ) }} ) }} ) }} ) }} ) }} ) }} ) }} ) }} ) }} | 0 }} }}}}{{#ifexpr:{{#var:len}} != 16|{{#ifexpr:{{#var:in}} > 2147483647|{{#expr:{{#var:in}} - 4294967296}}|{{#var:in}}}}|{{#var:in}}}}</includeonly><noinclude> | <includeonly>{{#vardefine:in|{{lc:{{{1|}}}}}}}{{#vardefine:len|{{#expr:{{#len:{{#var:in}}}}-{{#ifeq:{{lc:{{#sub:{{#var:in}}00|0|2}}}}|0x|2|0}}}}}}{{#vardefine:in|{{#expr:{{#ifexpr:{{#var:len}} > 0|{{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-1|1}}}}{{#ifexpr:{{#var:len}} > 1| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-2|1}}}}{{#ifexpr:{{#var:len}} > 2| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-3|1}}}}{{#ifexpr:{{#var:len}} > 3| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-4|1}}}}{{#ifexpr:{{#var:len}} > 4| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-5|1}}}}{{#ifexpr:{{#var:len}} > 5| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-6|1}}}}{{#ifexpr:{{#var:len}} > 6| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-7|1}}}}{{#ifexpr:{{#var:len}} > 7| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-8|1}}}}{{#ifexpr:{{#var:len}} > 8| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-9|1}}}}{{#ifexpr:{{#var:len}} > 9| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-10|1}}}}{{#ifexpr:{{#var:len}} > 10| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-11|1}}}}{{#ifexpr:{{#var:len}} > 11| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-12|1}}}}{{#ifexpr:{{#var:len}} > 12| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-13|1}}}}{{#ifexpr:{{#var:len}} > 13| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-14|1}}}}{{#ifexpr:{{#var:len}} > 14| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-15|1}}}}{{#ifexpr:{{#var:len}} > 15| + 16 * {{#pos:0123456789abcdef|{{#sub:{{#var:in}}|-16|1}}}} }} ) }} ) }} ) }} ) }} ) }} ) }} ) }} ) }} ) }} ) }} ) }} ) }} ) }} ) }} | 0 }} }}}}{{#ifexpr:{{#var:len}} != 16|{{#ifexpr:{{#var:in}} > 2147483647|{{#expr:{{#var:in}} - 4294967296}}|{{#var:in}}}}|{{#var:in}}}}</includeonly><noinclude> | ||
{ | {{/docs}} | ||
</noinclude> | </noinclude> |
Latest revision as of 11:32, 12 June 2013
{{LSL Hex/Parse|1f0F}} |
7951 |
{{LSL Hex/Parse|0x1f0F}} |
7951 |
{{LSL Hex/Parse|0x400F}} |
16399 |
{{LSL Hex/Parse|0x80000000}} |
-2147483648 |
{{LSL Hex/Parse|0x7FFFFFFF}} |
2147483647 |
{{LSL Hex/Parse|0xFFFFFFFF}} |
-1 |
{{LSL Hex/Parse|0xFFFFFFFFFFFFFFFF}} |
1.844674407371E+19 |