I came across an article the other day:
Mathematical model and implementation of rational processing about calculation and representation of fractional numbers as floating point values with additional pointers that indicate bits of the mantissa that repeat indefinitely.
If an operation runs out of precision, the result is just a regular floating-point number without any pointers.