You could try
if(1.0*varA/(VarA+VarB) >.95)
Keith Watford:
You could try
if(1.0*varA/(VarA+VarB) >.95)
or
if((double)varA/(VarA+VarB) >.95) {VarC=-5;}
They both work, thanks Keith and Alain...
turtle1000: ( integer/(integer+integer) )
| On MT4 v434, division quotient don't give floating point values(Bug??) - MQL4 forum |
Keith
Watford:
You could try
if(1.0*varA/(VarA+VarB) >.95)
This is the best thing i have read today

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi... Mt4 to Mt5 conversion... where the integers are variable counts such as, if(varA/(VarA+VarB) >.95) {VarC=-5;}
( integer/(integer+integer) )
Or (int)Mathround (integer/(integer+integer))
always gives zero in Mt5, How do i get the double solution?