-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
mathsMathematical functionsMathematical functions
Description
I know it implies that computations aren't supposed to have NaNs in them. However, NaN is frequently used as a placeholder value in storage. I feel like just looking at them with isnan should be safe, as long as we're not computing on them. However:
julia> NaN
2.696539702293474e308
julia> isnan(NaN)
true
julia> x = NaN
2.696539702293474e308
julia> isnan(x)
true
julia> f(x) = !isnan(x)
f (generic function with 1 method)
julia> f(x)
true
Metadata
Metadata
Assignees
Labels
mathsMathematical functionsMathematical functions