Alert(Ask) and five digits

 

I have a five digit broker. In my EA when I tell it to Alert(Ask) it only shows 4 digits comapred to the chart which shows 5. How do I get it to I get the Ask command to give me 5 digits? Would MarketInfo work?

 
if you want to print a floating point number you have to use DoubleToStr() function
 
.. and maybe use Digits to decide Dec Pts
 

Thanks zzuegg it worked great.

 
string  PriceToStr(double p){
    string pFrc = DoubleToStr(p, Digits);       
    string pPip = DoubleToStr(p, Digits-1);
    if (pPip+"0" == pFrc)       return(pPip);           return(pFrc);          }
Reason: