Jump to: navigation, search

Template:Decimal to binary converter

Revision as of 17:10, 4 January 2014 by MrTJP (talk | contribs) (Created page with "<includeonly>{{#ifexpr: {{#len: {{{1|}}} }} < 9 | {{#ifexpr: {{#len: {{{1|}}} }} > 0 | {{ #ifexpr: {{#len: {{{1}}} }} > 0 | {{#vardefine:char1|{{#expr: {{{1}}} mod...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template-info.png Documentation
Shortcut
dec-bin


Lua logo.svg
This template uses Module:Convert base, a script written in the Lua programming language. Please see wp:Lua and mw:Extension:Scribunto to learn more about Lua.

This is a simple to use tool for dynamically converting decimal values to binary values. It can take decimal numbers up to 9999999999999999999.

Code

In full the template code is as follows:

{{Decimal to binary converter|1234}}

But it is much easier to use it through the redirect dec-bin which allows it to be written out as:

{{Dec-bin|1234}}

Both of which will output 010011010010.

See also



Cookies help us deliver our services. By using our services, you agree to our use of cookies.