Skip to main content

All Questions

Filter by
Sorted by
Tagged with
13 votes
8 answers
1k views

Pros and cons of throwing an error versus returning a NaN value

So I've seen that many languages return a NaN value when calculating an indeterminate arithmetic expression (e.g. 0/0). Other ...
The Empty String Photographer's user avatar