In IEEE 754-2008, the section "9.2.1 Special Values" refers to
pow(+1, y) 1for anyone y(even quiet NaN)
In order not to read the entire document, Wikipedia gives a shortcut :
The 2008 version of the IEEE 754 standard says that pow(1, qNaN)they pow(qNaN, 0)should return 1, since they return 1what else instead of quiet NaN.
Why then Math.pow(1, NaN)is there NaNin JavaScript? Isn't that up to standards?
source
share