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

Add Rational ToField and FromField instances #114

Closed
wants to merge 1 commit into from
Closed

Add Rational ToField and FromField instances #114

wants to merge 1 commit into from

Conversation

chrislf
Copy link

@chrislf chrislf commented Feb 8, 2016

I've added a Rational ToField instance and a Rational FromField instance. This was because using a Double instance and converting to Rational is inaccurate and led to incomparable data in a project I'm working on.

I haven't added any further test cases as Rational should handle no more values than Double or Float and the Float instance doesn't have any in any case.

@chrislf
Copy link
Author

chrislf commented Jul 19, 2016

I'm going to close this - I think it's clear why it won't be merged (it's not a well-defined conversion and functions are not total). My requirement has gone anyway, and if I had it again I'd use a custom type.

@chrislf chrislf closed this Jul 19, 2016
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.

1 participant