H
Harlan Grove
I'm using Perl 5.8.3 (ActiveState Build 809 for Windows).
perl -e "print (1-(1+(5.2/100/12))**-(30*12))/(5.2/100/12);"
gives 0.789154519316799, which is incorrect, while
perl -e "print ((1-(1+(5.2/100/12))**-(30*12))/(5.2/100/12));"
gives 182.1125813808, which is correct.
I also get the same results from Perl 5.8.7 (Cygwin).
Why is there a difference? In the former script, it's as if the
denominator term (5.2/100/12) was ignored.
perl -e "print (1-(1+(5.2/100/12))**-(30*12))/(5.2/100/12);"
gives 0.789154519316799, which is incorrect, while
perl -e "print ((1-(1+(5.2/100/12))**-(30*12))/(5.2/100/12));"
gives 182.1125813808, which is correct.
I also get the same results from Perl 5.8.7 (Cygwin).
Why is there a difference? In the former script, it's as if the
denominator term (5.2/100/12) was ignored.