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
Then you should write to Service Desk that they have invented such an extra functionMathCeil():)
int A = double B + 0.5
Five, then.
He is right about:"First, 0.5 is added to the fractional number and thenthe fractional partis cut off from the result and the result is rounded to integer.", but MQ gave usMathCeil() not to bother with it.
Thanks, Sunny, but MathCeil only works with double: both input and output :)
is solved: int A = (int)MathCeil(double B);
Sorry:int A =(int)MathCeil(double B+0.5)
Not a:solved: int A =(int)MathCeil(double B);
try: int A = MathCeil(2.4)
int A = MathCeil(2.4)=3
int A = MathCeil(2.4+0.5) =3
but
int A = MathCeil(2.6+0.5) =4
int A = MathCeil(2.6) =3
int A = MathCeil(2.4)=3
int A = MathCeil(2.4+0.5) =3
but
int A = MathCeil(2.6+0.5) =4