Get the last xxx numbers of a bigger number

 

Hi,


i have a magicnumber e.g 10055 or 100555.


How can i get the last 2 or 3 numbers from that big numbers?

 
Raphael Schwietering:

Hi,


i have a magicnumber e.g 10055 or 100555.


How can i get the last 2 or 3 numbers from that big numbers?

stringify the number and stringsubstr

 
Sardion Maranatha:stringify the number and stringsubstr

Why would you use int to string, substring, string to int, instead of just getting the number?

Raphael Schwietering: i have a magicnumber e.g 10055 or 100555. How can i get the last 2 or 3 numbers from that big numbers?

xxx123 % 100 = 23. xxx123 % 1000 = 123.

Reason: