Metadata-Version: 2.1
Name: precreal
Version: 1.0.2
Summary: A package providing a fraction-based Real class that allows you to do exact real arithmetic, along with some algorithms
Home-page: https://github.com/none-None1/precreal
Author: None1
Keywords: arithmetic,calculating,real number
Requires-Python: >=3
Description-Content-Type: text/markdown

This is a Python package to do exact real arithmetic, the following is an example using it:

```python
from precreal import Real,intpow,pi

>>> 0.1+0.2==0.3 # Precision loss

False

>>> Real("0.1")+Real("0.2")==Real("0.3") # The Real class has NO precision loss when doing arithmetic

True

>>> intpow(Real(2),100)

1267650600228229401496703205376

>>> pi(7)
3.1415926
```

You can also run `precreal_test`, which tests three features of this package.

changelog:

* 1.0.0 First version
* 1.0.1 Fixed a setup.py bug
* 1.0.2 Fixed the bug that pi computing results in 10 more digits
