Jump to content

Template:Hexadecimal/testcases

From Wikipedia, the free encyclopedia
Code Result
Live Sandbox
{{hexadecimal|0}} 016 016
{{hexadecimal|15}} F16 F16
{{hexadecimal|3256}} CB816 CB816
{{hexadecimal|65536}} 1000016 1000016
{{hexadecimal|128892}} 1F77C16 1F77C16
{{hexadecimal|-128892}} -1F77C16 N/A
{{hexadecimal|-128892.5}} -1F77C16 N/A
{{hexadecimal|73.3333333}} 4916 4916
{{hexadecimal|73.25}} 4916 4916
{{hexadecimal|{{#expr:1+3/8}}}} 116 116
{{hexadecimal|268435455}} FFFFFFF16 FFFFFFF16
{{hexadecimal|1268435455}} 4B9AC9FF16 N/A
{{hexadecimal|12589|hex}} 312Dhex 312Dhex
{{hexadecimal|10|digit}} A A
{{hexadecimal|12589|digit}} 312D 312D
{{hexadecimal|10|no}} 0A 0A
{{hexadecimal|12589|no}} 312D 312D
{{hexadecimal|010}} A16 A16
{{hexadecimal|5E7}} 2FAF08016 2FAF08016
{{hexadecimal|5e7}} 2FAF08016 2FAF08016
{{hexadecimal|5 E7}} 2FAF08016 2FAF08016
{{hexadecimal|5 e7}} 2FAF08016 2FAF08016
{{hexadecimal|}} Expression error: Unexpected > operator
{{hexadecimal}} 016 016
{{hexadecimal|foo}} foo Expression error: Unrecognized word "foo".