Are there any arithmetic laws that are always true for the set of rational numbers but not always true for the set of real numbers?
This came up because I was doing various exercises in different ways to represent real numbers on a computer (besides the IEEE 754 floating point standard) and accidentally stumbled onto a method that only produces rational numbers. I know that the result of any real number representation will terminate at the length of the data types size and thus the final result of a calculation is always rational, but in most cases the true answer is irrational and then it gets rounded and terminated into being represented as a rational number.
I was curious as to whether this weird property had any benefits that could be taken advantage of.
Every rational number can be written as $\frac ab $ such that $a,b \in \Bbb{Z} ,b\neq 0$ with $\operatorname{gcd}(|a|,|b|)=1$.But it's not true for every real number.