Difference between revisions of "Template:Octal"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
(I'm playing with the octal conversion template)
 
m (Playing with the template)
Line 1: Line 1:
{{#expr:{{{1}}} mod 4096}}
+
{{#expr:({{{1}}} / 512) mod 8}}
{{#expr:{{{1}}} mod 512}}
+
{{#expr:({{{1}}} / 64 mod 8}}
{{#expr:{{{1}}} mod 64}}
+
{{#expr:({{{1}}} / 8) mod 8}}
{{#expr:{{{1}}} mod 8 }}
+
{{#expr:({{{1}}} / 1) mod 8}}
  
 
<noinclude>
 
<noinclude>
 
This template converts numbers to Octal notatation. use is <nowiki>{{Octal|Number}}</nowiki>
 
This template converts numbers to Octal notatation. use is <nowiki>{{Octal|Number}}</nowiki>
 
</noinclude>
 
</noinclude>

Revision as of 16:59, 22 December 2006

Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{".


This template converts numbers to Octal notatation. use is {{Octal|Number}}