Allen Chou says to YSITD https://math.stackexchange.com/questions/480068/how-to-reverse-digits-of-an-integer-mathematically