Skip to content

Commit

Permalink
Fix example about typemax and typemin
Browse files Browse the repository at this point in the history
Due to the changes in 4706184 tuples are now printed compact. Thus to
demonstrate the point in this example we have to execute the examples
independently.
  • Loading branch information
vchuravy committed Jun 23, 2016
1 parent 83ef854 commit 78f6d70
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions doc/manual/integers-and-floating-point-numbers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -412,14 +412,23 @@ types:

.. doctest::

julia> (typemin(Float16),typemax(Float16))
(-Inf16,Inf16)
julia> typemin(Float16)
-Inf16

julia> (typemin(Float32),typemax(Float32))
(-Inf32,Inf32)
julia> typemax(Float16)
Inf16

julia> (typemin(Float64),typemax(Float64))
(-Inf,Inf)
julia> typemin(Float32)
-Inf32

julia> typemax(Float32)
Inf32

julia> typemin(Float64)
-Inf

julia> typemax(Float64)
Inf


Machine epsilon
Expand Down

0 comments on commit 78f6d70

Please sign in to comment.