Difference between revisions of "Template:Hexadecimal/testcases"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
(add example not a number with different effect)
imported>Shellwood
m (Reverted edits by GdzieSiePodzialyTamtePrywatki (talk) to last version by Johnuniq)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{template test cases notice}}
 
{{template test cases notice}}
 
{| class="wikitable"
 
{| class="wikitable"
! Code !! Result !! Sandbox Result
+
! rowspan=2 | Code
 +
! colspan=2 | Result
 +
|-
 +
! Live
 +
! Sandbox
 
|-
 
|-
 
| <nowiki>{{hexadecimal|0}}</nowiki>
 
| <nowiki>{{hexadecimal|0}}</nowiki>
Line 74: Line 78:
 
| {{hexadecimal|010}}
 
| {{hexadecimal|010}}
 
| {{hexadecimal/sandbox|010}}
 
| {{hexadecimal/sandbox|010}}
 +
|-
 +
| <nowiki>{{hexadecimal|5E7}}</nowiki>
 +
| {{hexadecimal|5E7}}
 +
| {{hexadecimal/sandbox|5E7}}
 +
|-
 +
| <nowiki>{{hexadecimal|5e7}}</nowiki>
 +
| {{hexadecimal|5e7}}
 +
| {{hexadecimal/sandbox|5e7}}
 +
|-
 +
| <nowiki>{{hexadecimal|5 E7}}</nowiki>
 +
| {{hexadecimal|5 E7}}
 +
| {{hexadecimal/sandbox|5 E7}}
 +
|-
 +
| <nowiki>{{hexadecimal|5 e7}}</nowiki>
 +
| {{hexadecimal|5 e7}}
 +
| {{hexadecimal/sandbox|5 e7}}
 
|-
 
|-
 
| <nowiki>{{hexadecimal|}}</nowiki>
 
| <nowiki>{{hexadecimal|}}</nowiki>
 
| {{hexadecimal|}}
 
| {{hexadecimal|}}
| {{hexadecimal/sandbox|}}
+
| <strong class="error">Expression error: Unexpected &gt; operator</strong><!--{{hexadecimal/sandbox|}}-->
 
|-
 
|-
 
| <nowiki>{{hexadecimal}}</nowiki>
 
| <nowiki>{{hexadecimal}}</nowiki>

Latest revision as of 12:46, 7 October 2018

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".