In IEEE 754-2008 section "9.2.1 Special values" there is mentioned that
pow(+1, y)is1for anyy(even a quietNaN)
For not reading the entire document Wikipedia gives the shortcut:
The 2008 version of the IEEE 754 standard says that
pow(1, qNaN)andpow(qNaN, 0)should both return1since they return1whatever else is used instead of quietNaN.
Why then Math.pow(1, NaN) is NaN in JavaScript? Doesn't it follow the standards?