Jump to content

Template:Hex2dec/testcases

From Wikipedia, the free encyclopedia
Code Result Sandbox Result
{{hex2dec|0}} 0 0
{{hex2dec|0x0000}} 0 0
{{hex2dec|0x7C0}} 1984 1984
{{hex2dec|0xFFFF}} 65535 65535
{{hex2dec|0x845FED}} 8675309 8675309
{{hex2dec|0x75BCD15}} 123456789 123456789
{{hex2dec|0xDEADBEEF}} 3735928559 3735928559
{{hex2dec|0xFFFFFFFF}} 4294967295 4294967295
{{hex2dec|0xFFFFFFFFF}} 68719476735 68719476735
{{hex2dec|7C0}} 1984 1984
{{hex2dec|FFFF}} 65535 65535
{{hex2dec|845FED}} 8675309 8675309
{{hex2dec|0xa0}} 160 160
{{hex2dec|a0}} 160 160
{{hex2dec|0x00A0}} 160 160
{{hex2dec|12345ABC}} 305420988 305420988
{{hex2dec|12345ABC}} 305420988 305420988
{{hex2dec}} 0 0
{{hex2dec|}} 0 0
{{hex2dec|foobar}} 0 0

error / NaN / #default

[edit]
{{hex2dec|foobar}} Nan 0