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

You could show that the actual value that is represented by the fp expansion is different #4

Open
yurivict opened this issue Sep 4, 2017 · 0 comments

Comments

@yurivict
Copy link

yurivict commented Sep 4, 2017

fp expansion that you give for 0.97 actually corresponds to 0.96999999999999997335464740899624302983...

Pari calculator computes the given series to the above number:
2^-1 + 2^-2 + 2^-3 + 2^-4 + 2^-5 + 2^-10 + 2^-12 + 2^-16 + 2^-17 + 2^-18 + 2^-19 + 2^-21 + 2^-23 + 2^-24 + 2^-25 + 2^-30 + 2^-32 + 2^-36 + 2^-37 + 2^-38 + 2^-39 + 2^-41 + 2^-43 + 2^-44 + 2^-45 + 2^-50 + 2^-52

So, there is rounding involved that you could show to the user, because the purpose of the program is supposedly educational, and this could make it more precise and educational. -)

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

No branches or pull requests

1 participant