mql5 remove leading zeros from double value

 

Hi everyone,

is there a way in mql5 to convert double value = 0,056 into 5,6

and 0,00024 into 2,4?

Thanks in advance!

 
Demosfen:

Hi everyone,

is there a way in mql5 to convert double value = 0,056 into 5,6

and 0,00024 into 2,4?

Thanks in advance!

is it a string?

 
Mohamad Zulhairi Baba:

is it a string?

No, it is double.
 
whroeder1:
0.00024 / _Point = 24. 0.00024 / PIP = 2.4. Compute what a PIP is and use it, not points.
          How to manage JPY pairs with parameters? - MQL4 and MetaTrader 4 - MQL4 programming forum
          Slippage defined in index points - Currency Pairs - Expert Advisors and Automated Trading - MQL5 programming forum

Thank you.

Reason: