Count in octal: Difference between revisions

Content added Content deleted
Line 2,056: Line 2,056:
We use the :8x interpolation modifier to create a string in base 8 (may use base 2 to 36).
We use the :8x interpolation modifier to create a string in base 8 (may use base 2 to 36).


<syntaxhighlight lang="langur">val .limit = 70000
<syntaxhighlight lang="langur">val limit = 70


for .i of .limit {
for i of limit {
writeln $"10x\.i; == 8x\.i:8x;"
writeln "10x{{i}} == 8x{{i:8x}}"
}
}</syntaxhighlight>
</syntaxhighlight>


{{out}}
{{out}}