Thread: How to code?
View Single Post
  #1568 (permalink)  
Old 02-09-2009, 12:18 PM
darkkiller's Avatar
darkkiller darkkiller is offline
Senior Member
 
Join Date: Jul 2007
Location: Malaysia
Posts: 258
darkkiller is on a distinguished road
how to change or remove .00

Quote:
double HiPrice2 = iHigh(NULL,NULL,1);
double LoPrice2 = iLow (NULL,NULL,1);
double Rangehilo= (HiPrice2-LoPrice2);
if (Digits < 4) Rangehilo = Rangehilo * 100; else Rangehilo = Rangehilo * 10000;
Comment("\n","Range: ",DoubleToStr(Rangehilo,2)+" pip","\n");
I try to create range PIP between high and low,but it show like this

->> Range: 37.00 pip

My question is,how to remove .00?so it will just show 37pip only?

thanks
Reply With Quote