| ▲ | AlotOfReading 3 hours ago | |
My experience is that if you write an interface that (rarely) returns NaNs, someone will use it assuming it's never NaN no matter how good the docs are. Then their code does bad things and you have to patiently explain why they're wrong and yes, they are holding isnan() wrong (in C/C++). | ||
| ▲ | WalterBright an hour ago | parent [-] | |
NaN for a failed sensor is objectively better than any other value. But at some point you just cannot help some people. | ||