If the currency pair is quoted in 4 decimal points, it is the last digit. If quoted in 5 decimal points, it is the 4th decimal. The Japanese yen is quoted in 2 decimal points, meaning that the 2nd decimal is a pip. On a platform that quotes the yen-related pairs in 3 decimal points, a pip is a 2nd decimal.