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

Type conversion before evaluation #125

Open
ch-47 opened this issue Apr 23, 2023 · 3 comments
Open

Type conversion before evaluation #125

ch-47 opened this issue Apr 23, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@ch-47
Copy link

ch-47 commented Apr 23, 2023

Is there a way to convert numbers before evaluation?
For example, fractions like 1/4 and 1/3 are evaluated to 0 and 0. Which makes sense, but it would be nice to get 0.25 and 0.33 instead.

@ISibboI
Copy link
Owner

ISibboI commented Apr 24, 2023 via email

@ch-47
Copy link
Author

ch-47 commented Apr 24, 2023

Yes, I understand that. I should have specified that I'm using eval_number function, so I was thinking maybe there is a way to do that implicitly. And I was talking about fractions in general, not the division operation. Sorry, if it doesn't make sense.

@ISibboI
Copy link
Owner

ISibboI commented Apr 25, 2023 via email

@ISibboI ISibboI added the enhancement New feature or request label Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants