Count in octal: Difference between revisions

m
no edit summary
mNo edit summary
Line 1,475:
number in base ten = 31 number in octal = 37
</pre>
 
=={{header|Ring}}==
<lang ring>
size = 30
for n = 1 to size
see octal(n) + nl
next
 
func octal m
output = ""
w = m
while fabs(w) > 0
oct = w & 7
w = floor(w / 8)
output = string(oct) + output
end
return output
</lang>
 
=={{header|Ruby}}==
2,468

edits