Đặt \(a\div5=b\div6=k\) \(\left(k\ne0\right)\).
\(\Rightarrow\left\{{}\begin{matrix}a=5k\\b=6k\end{matrix}\right.\)
Ta có: \(a\times b=30\Rightarrow5k\times6k=30\Rightarrow30k^2=30\Rightarrow k^2=1\Rightarrow k=\pm1\)
Với \(k=-1\)
\(\Rightarrow\left\{{}\begin{matrix}a=5\times\left(-1\right)\\b=6\times\left(-1\right)\end{matrix}\right.\Rightarrow\left\{{}\begin{matrix}a=-5\\b=-6\end{matrix}\right.\)
\(\Rightarrow-\left|a-b\right|=-\left|\left(-5\right)-\left(-6\right)\right|=-\left|1\right|=-1\)
Với \(k=1\)
\(\Rightarrow\left\{{}\begin{matrix}a=5\times1\\b=6\times1\end{matrix}\right.\Rightarrow\left\{{}\begin{matrix}a=5\\b=6\end{matrix}\right.\)
\(\Rightarrow-\left|a-b\right|=-\left|5-6\right|=-\left|-1\right|=-1\)
Vậy giá trị của \(-\left|a-b\right|\) bằng \(-1\).