From 5b25a47ae05a3263eb2ad305d2d711ae5f7b4df1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismael=20Venegas=20Castell=C3=B3?= Date: Tue, 21 Jul 2015 13:53:31 -0500 Subject: [PATCH] Add reference to `_` as digit separator. Ref: http://stackoverflow.com/questions/31546263/digit-separator-in-julia [av skip] --- doc/manual/integers-and-floating-point-numbers.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/manual/integers-and-floating-point-numbers.rst b/doc/manual/integers-and-floating-point-numbers.rst index e9c533aa569bc..b98681d35eafd 100644 --- a/doc/manual/integers-and-floating-point-numbers.rst +++ b/doc/manual/integers-and-floating-point-numbers.rst @@ -325,6 +325,12 @@ only as a storage format. In calculations they'll be converted to ``Float32``: julia> 2*Float16(4.) 8.0f0 +The underscore ``_`` can be used as digit separator: + +.. doctest:: + + julia> 10_000, 0.000_000_005, 0xdead_beef, 0b1011_0010 + (10000,5.0e-9,0xdeadbeef,0xb2) Floating-point zero ~~~~~~~~~~~~~~~~~~~