Skip to content

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

Description

@yurivict

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. -)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions