Welcome to mixed_python
mixed is a Python module containing a single class, Mixed, which represents fractions and mixed numbers.
You can install the released version from the Python Cheese Shop:
easy_install -UZ mixed
(You'll need python-setuptools on your machine)
Alternately, you can get the development version with mercurial:
hg clone http://hg.assembla.com/mixed_python mixed_python cd mixed_python python setup.py develop
Your contributions are welcome! Bug reports, improvement requests, etc. can be filed on the Trac.
>>> from mixed import Mixed
>>> m1 = Mixed('4 2/3')
>>> m2 = Mixed('4/10')
>>> m1 + m2
Mixed('5 1/15')
>>> print m1 / m2
11 2/3
>>> m2.reduced()
Mixed('2/5')
Starting Points
- TracGuide -- Built-in Documentation
- The Trac project -- Trac Open Source Project
- Trac FAQ -- Frequently Asked Questions
- TracSupport -- Trac Support
For a complete list of local wiki pages, see TitleIndex.