Reputation: 1025
Why does double.NAN
exist but num.NAN
and int.NAN
don't, in Google's Dart programming language?
Upvotes: 7
Views: 992
Reputation: 8128
NaN is a specific double value that is specified in the IEEE standard for floating-point values (IEEE 754).
NaN has special properties (like NaN != NaN), and those properties are implemented by the CPU.
Integers do not have any explicit NaN value.
Upvotes: 7