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

use big.Float for floor/ceil #111

Merged
merged 1 commit into from Jul 6, 2021
Merged

Conversation

jbardin
Copy link
Contributor

@jbardin jbardin commented Jul 6, 2021

Do not convert floor and ceil arguments to float64 internally so as to not lose precision.

This leaves pow and log as the remaining numeric functions which convert to primitive types internally. Both of these are much more complex to implement (which is why they are not included in the math/big package itself). The precision offered by float64 is likely sufficient for most any log operation, so that probably just leaves exp as the last function which needs to be implemented.

Do not convert floor and ceil arguments to float64 internally so as to
not lose precision.
Copy link
Collaborator

@apparentlymart apparentlymart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks!

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.

None yet

2 participants