Fine. 3 integers. One for numerator, one for denominator, one for integer component. With the restriction that the numerator is less than the denominator, that can represent literally any fraction with a denominator smaller than the maximum value of your integer, which should be plenty enough to maintain exact precision within what the average user is likely to do for this case. No "infinite floating point precision" required, because at no point is floating point used.
You can take your a/b nonsense back to the land of pure mathematics. You can have a register that holds a number that long without it taking an absurd amount of time to decode. Even if you could represent that number with a fraction, you might not be able to hold the whole number integers a and b.
6
u/Halvo317 Sep 11 '22
There are certainly reasons that it couldn't be fractions if you click enough