several useful numerical approximation in integer math for projects involving simple controllers