All Questions
Tagged with error-handling expressions
1 question
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 ...