number%10

Read more of this post