Integer into double

 

Good morning,

I need help in

  int BarOpenTime;
    BarOpenTime=TimeCurrent();

turning BarOpenTime into double value for

next tests.

Can somebody please help me.

Thanks a lot.

 
int start(){
//#################################################################
//#################################################################
double BarOpenTime;
BarOpenTime=TimeCurrent();
Alert(BarOpenTime);
//#################################################################
//#################################################################
return(0);}
//#################################################################
//#################################################################
// Alert OutPut:
2010.08.27 12:50:17     BarTime_2Double EURUSD,M30: Alert: 1282942217
//#################################################################
//#################################################################
 

Speaking more generally, you can cast data types implicitly. For example:

int MyInteger;

double MyDouble = MyInteger;

CB

 
Why would you want to. TimeCurrent() is a datetime not an int.