Word for !isnan

Is there a a technical (but not necessarily Julia) word for values that aren’t nan?

(Edited)

The nearest Julia idiom is isfinite, which also excludes Inf/-Inf. There’s always this route, too:

julia> isan = !isnan
#97 (generic function with 1 method)

julia> isan(3)
true

julia> isan(NaN)
false
1 Like

Not not a number is a number, no?

3 Likes

IEEE 754 simply calls it a “floating-point number” (and uses “floating-point datum” for something that may be a floating point number or a NaN).

1 Like

I would use non_nan or not_nan maybe. People aren’t good at double negatives and I’d argue almost nobody thinks “this is not a number” but “this is a NaN value” so the meaning is positive while the derivation is negative.