Please be assured that the pow function is working as expected.
What is not functioning is your understanding of floating point arithmetic, and its irrelevance to an integer arithmetic problem.
Please be assured that the pow function is working as expected.
What is not functioning is your understanding of floating point arithmetic, and its irrelevance to an integer arithmetic problem.