Function to get the first two digits out from a numer

I have a sensor that will give me a 4 digit number. Is there some function that I can use in a rule to get the two first numbers. Example it would extract 75 out of the number 7532.


Search the community for substring, you will surely find something usefull.