Because of integer truncation. pow() returns a floating point value, and due to floating point arithmetic, it is probably ~ 99.999...; however, due to integer truncation, even 99.999... gets truncated down to 99.
pow()
99.999...
2.1m questions
2.1m answers
60 comments
57.0k users