Helps out with common math functions