I am pointing at this question: Why does Math.cbrt(1728) produce a more accurate result than Math.pow(1728, 1/3)?, even gold badge closed it as such; the question didn't ask why Math.pow
isn't accurate, but why method such as Math.cbrt
that meant to do the same functionality as Math.pow(x,1/3)
, resulting in different outputs.
My guess is that none of those that voted to close the question read it carefully enough, unless there is another valid reason; enlighten me if there's any of them.
Math.cbrt
implemented different than expected and explain why it outputs different result in this particular situation. TL;DR: Yes.