In fact, division by zero is the most common reason for NaN.
Typically, the first such division produces an infinite value.
But then continued calculations with this infinite value result in NaN.
Expressions such as (Infinity-Infinity) and (Infinity/Infinity) are NaN.
Typically, the first such division produces an infinite value.
But then continued calculations with this infinite value result in NaN.
Expressions such as (Infinity-Infinity) and (Infinity/Infinity) are NaN.