Check out example codes for "kotlin string remove last 3 digits". It will help you in understanding the concepts better.

Code Example 1

str.substring(0, str.length() - 2);

Learn ReactJs, React Native from akashmittal.com