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

Calling numerator on float should convert to rational first #213

Closed
jcubic opened this issue Jun 21, 2022 · 0 comments
Closed

Calling numerator on float should convert to rational first #213

jcubic opened this issue Jun 21, 2022 · 0 comments
Labels
bug Something isn't working resolved

Comments

@jcubic
Copy link
Owner

jcubic commented Jun 21, 2022

lips> (numerator 2.3)
2.3

It should be: 23 since:

lips> (inexact->exact 2.3)
23/10
@jcubic jcubic added the bug Something isn't working label Jun 21, 2022
@jcubic jcubic changed the title Calling numerator of float should convert to rational first Calling numerator on float should convert to rational first Jun 21, 2022
jcubic added a commit that referenced this issue Dec 12, 2022
@jcubic jcubic closed this as completed Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved
Projects
None yet
Development

No branches or pull requests

1 participant