

No one? Couldn't find an answer in the forum or anywhare in mql4.com but i've managed to find the solution! Lot Sizehttps://forum.mql4.com/37352#403025 MathFloor(var1*100)/100.; 

Subgenius: My lot size is more than two decimals. If I want to display the value of lot * a takeprofit value.. StrToDouble(StringSubstr(DoubleToStr(NewLot),5,StringLen(NewLot)))*TakeProfit1


WHRoeder:
well, i send NewLot normalized double in the third decimal which looks like 0.0368 and the broker opens an order with 0.03.. when i'm trying to display this 0.03 * 5 take profit it wasn't looking like 0.15 but instead 0.0368 * 5 = 0.184 and the takeprofit value was 15 cents, not 18 cents i said i have got it resolved using math floor but using strings and normalize didnt work im with fx choice 


Subgenius: Thanks Subgenius :) Hope you don't mind me using your formula :)
No one? Couldn't find an answer in the forum or anywhare in mql4.com but i've managed to find the solution! Lot Size 


If I want to display the value of lot * a takeprofit value..
My lot size is more than two decimals but the order shows only 2 decimals ("0.03") which I cannot seem to get.
For instance: Takeprofit is "0.5" pips, Lotsize is "0.0368" and I 'm trying to see "TP1 Value: 0.15"
How do we do it without rounding it? Do we turn it into a string and then back into a double?
If so, this doesnt work: