Is it just me, or can 0.07 not be stored accurately?
This displays as 0.07000000000000001, therefore I can for instance send an order using a lot size of 0.07.
Well, you can try ...
First thing I tried. Doesn't help at all.
I've even wrote my own normalise function that didn't help either.
This makes the following command impossible, even though it's perfectly valid
What is minlot and lotstep for your broker?
The OrderSend will work perfectly fine with the constant 0.07, it is only when it is calculated that there might be a problem
double lotsize =a/b;
May or may not work as intended
It's not like I don't see that coming long before I post it.
To add comments, please log in or register