Templat:Octal: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
MerlIwBot (bicara | kontrib)
k bot Menambah: simple:Template:Octal
Farras (bicara | kontrib)
Lua
 
(2 revisi perantara oleh satu pengguna lainnya tidak ditampilkan)
Baris 1:
<includeonly>{{#ifeqinvoke:{{#expr: {{{1}}} > 134217727}} | 1BaseConvert |N/A|<!--
| convert
-->{{#switch:{{#expr: ({{{1}}} div 16777216) mod 8}}|0={{#ifeq:{{#expr: {{{1}}} >134217727}} | 1 |0}}|1=1|2=2|3=3|4=4|5=5|6=6|7=7}}<!--
| n={{{1}}}
-->{{#switch:{{#expr: ({{{1}}} div 2097152) mod 8}}|0={{#ifeq:{{#expr: {{{1}}} >16777215}} | 1 |0}}|1=1|2=2|3=3|4=4|5=5|6=6|7=7}}<!--
| base=8
-->{{#switch:{{#expr: ({{{1}}} div 262144) mod 8}}|0={{#ifeq:{{#expr: {{{1}}} >2097151}} | 1 |0}}|1=1|2=2|3=3|4=4|5=5|6=6|7=7}}<!--
| suffix=<sub>8</sub>
-->{{#switch:{{#expr: ({{{1}}} div 32768) mod 8}}|0={{#ifeq:{{#expr: {{{1}}} >262143}} | 1 |0}}|1=1|2=2|3=3|4=4|5=5|6=6|7=7}}<!--
}}</includeonly><noinclude>
-->{{#switch:{{#expr: ({{{1}}} div 4096) mod 8}}|0={{#ifeq:{{#expr: {{{1}}} >32767}} | 1 |0}}|1=1|2=2|3=3|4=4|5=5|6=6|7=7}}<!--
{{documentation}}
-->{{#switch:{{#expr: ({{{1}}} div 512) mod 8}}|0={{#ifeq:{{#expr: {{{1}}} >4095}} | 1 |0}}|1=1|2=2|3=3|4=4|5=5|6=6|7=7}}<!--
-->{{#switch:{{#expr: ({{{1}}} div 64) mod 8}}|0={{#ifeq:{{#expr: {{{1}}} >511}} | 1 |0}}|1=1|2=2|3=3|4=4|5=5|6=6|7=7}}<!--
-->{{#switch:{{#expr: ({{{1}}} div 8) mod 8}}|0={{#ifeq:{{#expr: {{{1}}} >63}} | 1 |0}}|1=1|2=2|3=3|4=4|5=5|6=6|7=7}}<!--
-->{{#switch:{{#expr: ({{{1}}} div 1) mod 8}}|0=0|1=1|2=2|3=3|4=4|5=5|6=6|7=7}}<sub>8</sub>}}</includeonly>
<noinclude>
[[Kategori:Templat matematika]]
[[en:Template:Octal]]
[[simple:Template:Octal]]
</noinclude>