PHP vs EXCEL Formula
Posted on 2014-04-17
Wondering if someone can help. I am trying to convert an excel formula into a PHP string to calculate the value.
FORMULA: =-0.91*(SIN(0.79/2))^3 which gives the answer -0.05 which is correct.
PHP: echo -0.91*(sin(0.79/2))^3; gives me an answer of 3.
Wondering if anyone can point me in the right direction of what I might be doing wrong. I have check and SIN is support in php.