Mathematical Function returns 0 value

 

folks This is my code

NormalizeDouble(MathAbs(10/100),3)*1000);

or this

double math=(10/100)*1000;

It just returns a zero value what is wrong here i have tried Removing  NormalizeDouble and MathAbs but still the same story But the Funny thing happens when i put the values after division my self The value comes out as i want it what is wrong is it the way i divide or??

Documentation on MQL5: Conversion Functions / NormalizeDouble
Documentation on MQL5: Conversion Functions / NormalizeDouble
  • www.mql5.com
Calculated values of StopLoss, TakeProfit, and values of open prices for pending orders must be normalized with the accuracy, the value of which can be obtained by Digits(). Please note...
 

It is because the calculation uses only integers, so cast as an integer.

Use

double math=(10.0/100)*1000;
 
Keith Watford:

It is because the calculation uses only integers, so cast as an integer.

Use

Absolutely ..Thank U

Reason: