MQL4 Reference Predefined Variables _Digits

MQL4 Help as One File:

int _Digits

The _Digits variable stores number of digits after a decimal point, which defines the price accuracy of the symbol of the current chart.

You may also use the Digits() function.