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

user specified precision in rational printing #67

Open
lgwagner opened this issue Oct 8, 2021 · 0 comments
Open

user specified precision in rational printing #67

lgwagner opened this issue Oct 8, 2021 · 0 comments
Assignees

Comments

@lgwagner
Copy link
Collaborator

lgwagner commented Oct 8, 2021

provide a user flag to specify the precision of rationals.

I'm thinking: -precision INT

the INT argument will produce the underlying fraction if the argument is 0 or N places of precision in a decimal format (up to some reasonable level, like 9). I think we should default N to 3 so it mimics current behavior by default.

Notes:

  • we used to provide a printout of the fractions that represented rationals but it became very hard to relate two values in a CEX (i.e. is 4388234/2342 > 2378823/273 ) which was easy to do for a couple of values but tedious for numerous values.
  • loss of precision in the current method has its own drawbacks
@lgwagner lgwagner self-assigned this Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant