How come my MarketInfo() is returning a price only to the ten thousandth decimal place?

 

ex. Print(MarketInfo(“EURUSD”,MODE_ASK))



output is '1.3044'


It seems to be rounding of the pipettes. Is there a way to fix this? My boker(Oanda) displays 5 digits after the decimal.

Thanks for the help! if any.....

 
blooflux:

ex. Print(MarketInfo(“EURUSD”,MODE_ASK))

output is '1.3044'

It seems to be rounding of the pipettes. Is there a way to fix this? My boker(Oanda) displays 5 digits after the decimal.

When you don't understand what is happening . . . read the documentation Print() "Data of double type are printed with 4 decimal digits after point. To output more precisely, use the DoubleToStr() function."
 

Fixed it thanks!

Reason: