How do you know it doesn't work?
Check the variables values separately and compare them with rad's variable value at the same time.I know mql havs
/ | Quotient of division |
and
% | Residue of division |
Im trying to find a function to the the real numbers as outut not just the remainder or the whole numbers of the quotient.
rad = ((oppl/hypl)*(M_PI/180));
rad = (oppl/hypl)*M_PI/180;
I know mql havs
/ | Quotient of division |
and
% | Residue of division |
Im trying to find a function to the the real numbers as outut not just the remainder or the whole numbers of the quotient.
Go from the division formula
D = d*q + r
if you know dividend D(real), divisor d(real) and remainder q(integer) you get the rest (real) r = D - d*q
I don't know if this help. But whenever i stumble across this kind of equation in my coding, I'll make sure all parameters is in "double" types.
Then, if "division" is involve in calculation, you need to make sure numerator (oppl && M_PI) is not equal to zero.
Hope this help.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use