Skip to content

Commit

Permalink
inf + nan examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Abbott committed Dec 22, 2020
1 parent 0934b8b commit ae2468b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion base/float.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,16 @@ const Inf = Inf64
Positive infinity of type [`Float64`](@ref).
See also: [`isfinite`](@ref), [`NaN`](@ref), [`Inf32`](@ref).
See also: [`isfinite`](@ref), [`typemax`](@ref), [`NaN`](@ref), [`Inf32`](@ref).
# Examples
```jldoctest
julia> π/0
Inf
julia> +1.0 / -0.0
-Inf
julia> ℯ^-Inf
0.0
```
Expand All @@ -65,6 +68,9 @@ NaN
julia> Inf - Inf
NaN
julia> NaN == NaN, isequal(NaN, NaN), NaN === NaN
(false, true, true)
```
"""
NaN, NaN64
Expand Down

0 comments on commit ae2468b

Please sign in to comment.