nothings / single_file_libs

List of single-file C/C++ libraries.
8.88k stars 584 forks source link

Submission: precision #135

Open LoganDark opened 5 years ago

LoganDark commented 5 years ago

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 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.