Hi Kevin,
I think I may have figured it out using the following:
$tmpDenominator = 1 - (pow((1 + $periodicIR),((0 + $numberOfPayments))));
The above is exactly like you're first formula, however for some reason it won't accept $numberOfPayments as the exp directly. Once I added the 0 + to the equation, the numbers miraculously came out proper.
I have a feeling however that other formulas based on this will likely not be proper... but that's just me being negative. 😉
Thanks for all you're help, I definately would not have figured that out alone.
Sincerely,