How do I to determine, given pairs $\{m_1, M_1\}$ and $\{m_2, M_2\}$, where $m_n \le 0$, $M_n \gt 0$ and $\{m_n, M_n \in \mathbb{Z}\}$, which pair $\{m_1, M_2\}$ or $\{m_2, M_1\}$ will have the smallest and largest product, WITHOUT actually comparing the products, using only integer arithmetic?
Given that I want to determine:
$$ m_1 M_2 \lt m_2 M_1$$
using integer arithmetic, with integer results, I get:
$$ \Big\lceil {m_1 \over M_1} \Big\rceil \le \Big\lceil {m_2 \over M_2 } \Big\rceil$$
based on the results that ${-3 \over 2} = -1$
How do I use integer $\bmod$, in conjunction to the integer division, to determine which product will be bigger?
Please be gentle, I'm a programmer, not a math major. :)