It uses 3 files, but has no dependencies, and runs even on stupid and weirdly restricted environments like repl.it.
math::Rational depends on math::Integer which depends on math::Unsigned, but they're only 1 file each. It's a really good arbitrary-precision library for stuff that doesn't need irrational numbers.
https://github.com/possibly-wrong/precision
It uses 3 files, but has no dependencies, and runs even on stupid and weirdly restricted environments like
repl.it
.math::Rational
depends onmath::Integer
which depends onmath::Unsigned
, but they're only 1 file each. It's a really good arbitrary-precision library for stuff that doesn't need irrational numbers.