Count in octal: Difference between revisions

→‎{{header|Ruby}}: doc ref no longer valid, end-less range added
(add BQN)
(→‎{{header|Ruby}}: doc ref no longer valid, end-less range added)
Line 2,841:
 
=={{header|Ruby}}==
From the [http://www.ruby-doc.org/core/Fixnum.html documentation]: "A Fixnum holds Integer values that can be represented in a native machine word (minus 1 bit). If any operation on a Fixnum exceeds this range, the value is automatically converted to a Bignum."
 
<lang ruby>n = 0
loop do
Line 2,850 ⟶ 2,848:
 
# or
for n in (0..Float::INFINITY)
puts n.to_s(8)
end
1,149

edits