Deyaz:
Hi,
I am sitting here for hours now trying to fix this thing until it turned out that my calculator can easily get the wanted result, but it seems that MT4 cant.
I should show the result -2.35671324
using this calculation: Print(((1/10)*23.56713241)*(-1));
but instead it is showing -0.
Does someone know the reason? Do I need a specific Math-function for letting it calculate that?
Because 1 and 10 are integer, so 1/10 is 0.
Try
Print(((1./10)*23.56713241)*(-1));
Wow, so simple. Thanks a lot! It worked.
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,
I am sitting here for hours now trying to fix this thing until it turned out that my calculator can easily get the wanted result, but it seems that MT4 cant.
I should show the result -2.35671324
using this calculation: Print(((1/10)*23.56713241)*(-1));
but instead it is showing -0.
Does someone know the reason? Do I need a specific Math-function for letting it calculate that?