Count in octal: Difference between revisions

Content added Content deleted
(add BQN)
(→‎{{header|Ruby}}: doc ref no longer valid, end-less range added)
Line 2,841: Line 2,841:


=={{header|Ruby}}==
=={{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
<lang ruby>n = 0
loop do
loop do
Line 2,850: Line 2,848:


# or
# or
for n in 0..Float::INFINITY
for n in (0..)
puts n.to_s(8)
puts n.to_s(8)
end
end