From cf6e1b9861bcec5829168ff81fc722259f3596ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sat, 28 Oct 2017 12:06:46 +0200 Subject: [PATCH] [skip ci] Clarify meaning of p in hexadecimal floating-point literals --- doc/src/manual/integers-and-floating-point-numbers.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/src/manual/integers-and-floating-point-numbers.md b/doc/src/manual/integers-and-floating-point-numbers.md index 75dfabf19a7f4..0934e19bd5e62 100644 --- a/doc/src/manual/integers-and-floating-point-numbers.md +++ b/doc/src/manual/integers-and-floating-point-numbers.md @@ -218,7 +218,8 @@ second argument is zero. ## Floating-Point Numbers -Literal floating-point numbers are represented in the standard formats: +Literal floating-point numbers are represented in the standard formats, using +[E-notation](https://en.wikipedia.org/wiki/Scientific_notation#E-notation) when necessary: ```jldoctest julia> 1.0 @@ -267,7 +268,8 @@ julia> typeof(ans) Float32 ``` -Hexadecimal floating-point literals are also valid, but only as [`Float64`](@ref) values: +Hexadecimal floating-point literals are also valid, but only as [`Float64`](@ref) values, +with `p` preceding the base-2 exponent: ```jldoctest julia> 0x1p0