need help to divide a double

 

Hello,

I have a double value of 0.00045 and need to divide it by 2000 to get the average value.

But the result I get is 0.

Is there a function to do this?

 

how exactly are you programming the calculation (are you casting the result as an integer by any chance?) and how exactly are you programming the reporting of the result of the calculation (numbers in strings get truncated at 4 digits unless you use DoubleToStr).

 
skyforex, a lot of the 'double' related information that so many beginners are having trouble with can be found here -> "Working with Doubles in MQL4". I recommend u read it.
Reason: