fractions — Rational Numbers — PyMOTW 3

The Fraction class implements numerical operations for rational numbers based on the API defined by Rational in the numbers module.

Read more…

This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.