ಟೆಂಪ್ಲೇಟು:Binary: ಪರಿಷ್ಕರಣೆಗಳ ನಡುವಿನ ವ್ಯತ್ಯಾಸ
Content deleted Content added
ಚು : id:Templat:Binary |
-idwiki - wrong place to put |
||
೧೨ ನೇ ಸಾಲು: | ೧೨ ನೇ ಸಾಲು: | ||
-->{{#switch:{{#expr: ({{{1}}} div 1) mod 2}}|0=0|1=1}}<sub>2</sub>}}</includeonly><noinclude> |
-->{{#switch:{{#expr: ({{{1}}} div 1) mod 2}}|0=0|1=1}}<sub>2</sub>}}</includeonly><noinclude> |
||
{{documentation}} |
{{documentation}} |
||
[[id:Templat:Binary]] |
|||
</noinclude> |
</noinclude> |
೧೯:೪೨, ೧೯ ನವೆಂಬರ್ ೨೦೦೯ ನಂತೆ ಪರಿಷ್ಕರಣೆ
This template uses Lua: |
This template is for quickly converting a decimal number to binary.
Usage
Use {{Binary|x|y}}
where x is the decimal number and y is the decimal precision (positive numbers, defaults displays up to 10 digits following the binary point).
Examples:
Code | Result | Notes |
---|---|---|
{{Binary|128892}} | N/A | Regular integer |
{{Binary|73.3333333|5}} | 10010012 | Truncated decimal |
{{Binary|73.3333333|0}} | 10010012 | Truncated at decimal point |
{{Binary|73|5}} | 10010012 | Decimals padded to integer |
{{Binary|73.25}} | 10010012 | Auto truncation |
{{Binary|73.25|4}} | 10010012 | Decimals padded |
{{Binary|{{#expr:1+3/8}}}} | 12 | Expression support |