Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run mpmath as a module for interactive work #773

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

skirpichev
Copy link
Collaborator

@skirpichev skirpichev commented Apr 2, 2024

Example:

$ python -m mpmath --prec 100 --no-ipython
>>> 10.9
mpf('10.899999999999999999999999999995')
>>> mpf(1090/100)
mpf('10.899999999999999999999999999995')
>>> mpf('10.9')
mpf('10.899999999999999999999999999995')
>>> mpf(109)/mpf(10)
mpf('10.899999999999999999999999999995')
>>> mpf(10.9)
mpf('10.899999999999999999999999999995')

Closes #677
Closes #765

@skirpichev skirpichev force-pushed the run-as-module branch 4 times, most recently from 5a2cedb to d1dea36 Compare April 9, 2024 05:26
@skirpichev skirpichev marked this pull request as ready for review April 13, 2024 06:19
Example:
```
$ python -m mpmath --prec 100 --no-ipython
>>> 10.9
mpf('10.899999999999999999999999999995')
>>> mpf(1090/100)
mpf('10.899999999999999999999999999995')
>>> mpf('10.9')
mpf('10.899999999999999999999999999995')
>>> mpf(109)/mpf(10)
mpf('10.899999999999999999999999999995')
>>> mpf(10.9)
mpf('10.899999999999999999999999999995')
```

Closes mpmath#677
Closes mpmath#765
@skirpichev skirpichev merged commit 5ed78da into mpmath:master Apr 16, 2024
10 checks passed
@skirpichev skirpichev deleted the run-as-module branch April 16, 2024 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run mpmath as module (for interactive work)? ensure "gotchas" are easy to find and link to
1 participant