Add in documentation for non-base 10 numbers
This commit is contained in:
parent
e05514bb4e
commit
fc5d74ba85
@ -31,6 +31,21 @@ languages.
|
|||||||
that symbols with dashes will shadow their underscore equivalents, and vice
|
that symbols with dashes will shadow their underscore equivalents, and vice
|
||||||
versa.
|
versa.
|
||||||
|
|
||||||
|
Notes on Syntax
|
||||||
|
===============
|
||||||
|
|
||||||
|
integers
|
||||||
|
--------
|
||||||
|
|
||||||
|
.. versionadded:: 0.11.1
|
||||||
|
|
||||||
|
In addition to regular numbers, standard notation from Python 3 for non-base 10
|
||||||
|
integers is used. ``0x`` for Hex, ``0o`` for Octal, ``0b`` for Binary.
|
||||||
|
|
||||||
|
.. code-block:: clj
|
||||||
|
|
||||||
|
(print 0x80 0b11101 0o102 30)
|
||||||
|
|
||||||
|
|
||||||
Built-Ins
|
Built-Ins
|
||||||
=========
|
=========
|
||||||
|
Loading…
x
Reference in New Issue
Block a user