Skip to content

Commit 721bdbe

Browse files
committed
Merge pull request #12253 from Ismael-VC/patch-4
Add reference to `_` as digit separator.
2 parents 673b2d7 + 5b25a47 commit 721bdbe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/manual/integers-and-floating-point-numbers.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,12 @@ only as a storage format. In calculations they'll be converted to ``Float32``:
325325
julia> 2*Float16(4.)
326326
8.0f0
327327

328+
The underscore ``_`` can be used as digit separator:
329+
330+
.. doctest::
331+
332+
julia> 10_000, 0.000_000_005, 0xdead_beef, 0b1011_0010
333+
(10000,5.0e-9,0xdeadbeef,0xb2)
328334

329335
Floating-point zero
330336
~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)