Hi to all the programmers. I am totally stumped . How do I get a number to round to the nearest tenth ?? I'm programming in MQL4. An example would be let say lotsize = (lot%/100) * accteqty ();
lotsize = lotsize / 1000;
lets say it comes out to be .14578 how would I get it to round to .2.
Any help you guys could give me would greatly be appreciated. I know it probably is something simple . Thanks in advance for the help...Valerie....
lotsize = lotsize / 1000;
lets say it comes out to be .14578 how would I get it to round to .2.
Any help you guys could give me would greatly be appreciated. I know it probably is something simple . Thanks in advance for the help...Valerie....