What function use for convert double data type to integer data type?

 
thank you
 
sorasit46:
thank you

https://docs.mql4.com/math/mathround 

 
sorasit46: What function use for convert double data type to integer data type?
rod178: https://docs.mql4.com/math/mathround 
  1. A cast
    double d;
    int    i = int(d); // or i = (int)d;
  2. MathRound or the others do NOT convert double to integer. They change the double value to the double equivalent of an integer, but you still have a double.
 
WHRoeder:
sorasit46: What function use for convert double data type to integer data type?
rod178: https://docs.mql4.com/math/mathround 
  1. A cast
  2. MathRound or the others do NOT convert double to integer. They change the double value to the double equivalent of an integer, but you still have a double.

Thank you
Reason: