TinyFractionsPP
Precise fraction math for C++ — no decimal drift, no rounding errors. Built for mathematicians, physicists, and engineers who demand accuracy.
View on GitHubWhy TinyFractionsPP?
Floating-point arithmetic is fast but imprecise. TinyFractionsPP keeps your numbers as exact fractions — preserving every digit through multiplication, division, and exponentiation. Perfect for scientific computing, physics simulations, and any project where precision matters.
Create fractions from integers, doubles, or even other fractions. Compare, add, subtract, multiply, divide, and raise to a power — all without losing accuracy to decimal conversion.
Upcoming Updates
Released
Math operations between fractions and standard types
New fraction methods (reverse(), getMixed(), etc.)
Vector support for complex physics computations
Sequence generation and operations for math problems
Scroll right