[PHP] arithmatic operation inconsistant

2002-02-28 Thread Roy Cabaniss
I have a very simple php page which I am creating an accounting tutorial from. I am writing all of the equations on an include file and then calling the file at the beginning of the appropriate pages My problems lie in inconsistant arithmatic operations. For some reason the equation for $gm1

Re: [PHP] arithmetic operation inconsistent

2002-02-28 Thread Roy Cabaniss
code, it does. What I can't figure out is why, even though there is a value > 1 for $ns1, about 70% of the time, it thinks that value is one for the calculation of $gm1. > * > * Cal Evans > * Journeyman Programmer > * Techno-Mage > * http://www.calevans.com > *