Skip to content

A basic implementation for working with fractions in Python 3.5+

License

Notifications You must be signed in to change notification settings

AdamGoertz/python-fractions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 

Repository files navigation

fractions -- Python 3.5+

Creates a fraction data type for use with Python 3.5+.

Installation Instructions:

Copy the 'fractions' file to the 'Lib' folder in your Python 3.5+ installation.

Import the module using

import fractions

fraction objects can be instantiated using

fractions.fraction(numerator, denominator)

fraction objects support all relevant arithmetic and comparison operators, as well as methods to simplify and convert between floating point numbers and fractional representations.

If you believe functionality is missing, or if you find an error, please submit an issue.

About

A basic implementation for working with fractions in Python 3.5+

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages