Template:Binary/testcases

Code Result Sandbox Result
{{binary|0}} 02 02
{{binary|65536}} 100000000000000002 100000000000000002
{{binary|128892}} 111110111011111002 111110111011111002
{{binary|-128892}} -111110111011111002 -111110111011111002
{{binary|-128892.5}} -11111011101111100.12 -11111011101111100.12
{{binary|73.3333333}} 1001001.01010101012 1001001.01010101012
{{binary|73.3333333|5}} 1001001.010102 1001001.010102
{{binary|73.3333333|0}} 10010012 10010012
{{binary|73.3333333|foo}} 1001001.01010101012 1001001.01010101012
{{binary|73|5}} 1001001.000002 1001001.000002
{{binary|73.25}} 1001001.012 1001001.012
{{binary|73.25|4}} 1001001.01002 1001001.01002
{{binary|{{#expr:1+3/8}}}} 1.0112 1.0112
{{binary|134217727.9999999}} 111111111111111111111111111.11111111112 111111111111111111111111111.11111111112
{{binary|145217727}} 10001010011111011000101111112 10001010011111011000101111112
{{binary|010}} 10102 10102
{{binary}} {{{1}}} {{{1}}}2
{{binary|foo}} foo foo2