DoubleToString returns null

 

Hi,I am trying to convert the value of Ask to string but it allways returns null :(,I don´t know the reason,the code is really simple just 2 arguments,here it is

  strprecio=DoubleToString(Ask,4);

the code is in MQL4

DoubletoStr() has the same problem,do you know any other way to convert a price to string?

thanks

 
karel2006:

Hi,I am trying to convert the value of Ask to string but it allways returns null :(,I don´t know the reason,the code is really simple just 2 arguments,here it is

What type of variable is strprecio?

How do you know that it always returns NULL?

 
  1. It doesn't return null — ever.
  2. Post all the relevant code.
This website uses cookies. Learn more about our Cookies Policy.