bug in MQL4 New comment [Deleted] 2008.11.04 17:46 I found a bug in mql4 language, please try the following code : extern int GLP=25; int start() { double y=GLP/100; Print(y); return(0); } it prints 0 ! it should print 0.25 tested on MT4 build 218. Regards bug with ++i ?? I Find a huge bug in MetaTrader/MetaEditor Bug in MQL4 double calculation [Deleted] 2008.11.04 17:50 #1 F Try extern int GLP=25; int start() { double y=NormalizeDouble(GLP/100, 2); Print(y); return(0); } -BB- Ray 2008.11.04 17:58 #2 double y=GLP/100.0; Slava 2008.11.04 19:04 #3 double y=GLP/100.0; see https://docs.mql4.com/basis/types/casting New comment
I found a bug in mql4 language, please try the following code :
extern int GLP=25;
int start()
{
double y=GLP/100;
Print(y);
return(0);
}
it prints 0 ! it should print 0.25
tested on MT4 build 218.
Regards