Skip to content

Commit

Permalink
Update docstring for isnan (JuliaLang#33258)
Browse files Browse the repository at this point in the history
  • Loading branch information
mschauer authored and StefanKarpinski committed Sep 30, 2019
1 parent f696e17 commit 5e6a906
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/float.jl
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,8 @@ abs(x::Float64) = abs_float(x)
"""
isnan(f) -> Bool
Test whether a floating point number is not a number (NaN).
Test whether a number value is a NaN, an indeterminate value which is neither an infinity
nor a finite number ("not a number").
"""
isnan(x::AbstractFloat) = x != x
isnan(x::Float16) = reinterpret(UInt16,x)&0x7fff > 0x7c00
Expand Down

0 comments on commit 5e6a906

Please sign in to comment.