possible loss of data due to type conversion
GrumpyDuckMan:
Hello everyone,
I can't seem to fix this warning at the moment. I know its only a warning, but I like to solve it correctly.
The program runs fine atm, just annoying warning.
You should post a line where the variable "convert" is declared. StringToInteger() returns long. For example if your "convert" is int (int convert) then you can declare it as long (long convert) or you should use: convert = (int) StringToInteger(convertDoubleStr);
Instead of your code:
digits=MarketInfo (CurrentSymbol,MODE_DIGITS); convertDoubleStr = DoubleToString(digits,0); convert = StringToInteger(convertDoubleStr);
You can use just this:
uchar convert=(uchar) MarketInfo(CurrentSymbol,MODE_DIGITS);
Hello everyone,
I can't seem to fix this warning at the moment. I know its only a warning, but I like to solve it correctly.
The program runs fine atm, just annoying warning.