I have good news: there is a quark that implements rational numbers. Whatever is possible to implement as a quark is there. However, since it’s not part of the std lib, you may need to convert it to a Float at the end.
More here: Rational Quark update