Anonymous user
Non-decimal radices/Output: Difference between revisions
→{{header|Ruby}}
Line 1,003:
=={{header|Ruby}}==
end
puts
[2,8,10,16,36].each {|i| puts " 100.to_s(#{i}) => #{100.to_s(i)}"}</lang>
{{out}}
<div style="height:30ex;overflow:scroll">
0 0 0 0
1 1 1 1
Line 1,040 ⟶ 1,044:
100000 40 32 20
100001 41 33 21
100.to_s(2) => 1100100
100.to_s(8) => 144
100.to_s(10) => 100
100.to_s(16) => 64
100.to_s(36) => 2s
</div>
=={{header|Scheme}}==
|