Navigation:Home > Content >

Math.mqh

Time: 2013-02-12 | Download file:Math.mqh

//+------------------------------------------------------------------+
//|                                                         Math.mq4 |
//|                      Copyright © 2008, Empryean Software Pvt Ltd |
//|                            http://finance.empryean.com/fxtrading |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2008, Empryean Software Pvt Ltd"
#property link      "http://finance.empryean.com/fxtrading"

#import "Math.ex4"
  /**
   * MathRound of MQL4 is not good enough, i need to round of
   * at a given precision not everything to integers.
   * @param double value to round off
   * @param precision 
   */
  double Math.Round(double value, int precision);
  
  /**
   * MathCeiling of MQL4 is not good enough, i need to do a ceil at a given precision
   * @param double value to operate
   * @param precision 
   */
  double Math.Ceiling(double value, int precision);
  
  /**
   * MathRound of MQL4 is not good enough, i need to floor at a given precision
   * @param double value to operate
   * @param precision 
   */
  double Math.Floor(double value, int precision);
  
  int Math.CompareDoubles(double number1,double number2);
#import

Recommend