Literals/Integer: Difference between revisions

Content added Content deleted
(add RPL)
Line 2,042: Line 2,042:
Binary literal = 1234
Binary literal = 1234
</pre>
</pre>

Unsigned integers, which must begin with <code>#</code>, can be expressed in binary, octal, decimal or hexadecimal. A final lowercase letter defines the base.
#100111010b
#472o
#314d
#13Ah


=={{header|Ruby}}==
=={{header|Ruby}}==