Arithmetic operators - cppreference.com
If the second operand is zero, the behavior is undefined, except that if floating-point division is taking place and the type supports IEEE floating-point arithmetic (see std::numeric_limits::is_iec559), then: if one operand is NaN, the result is NaN divi...