MQL4 Reference Conversion Functions IntegerToString

MQL4 Help as One File:

IntegerToString

This function converts value of integer type into a string of a specified length and returns the obtained string.

string  IntegerToString(
   long    number,              // number
   int     str_len=0,           // length of result string
   ushort  fill_symbol=' '      // filler
   );

Parameters

number

[in]  Number for conversion.

str_len=0

[in]  String length. If the resulting string length is larger than the specified one, the string is not cut off. If it is smaller, filler symbols will be added to the left.

fill_symbol=' '

[in]  Filler symbol. By default it is a space.

Return Value

String.