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

round filter: perform cast to i128 if precision is 0 #899

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Raymi306
Copy link

@Raymi306 Raymi306 commented Feb 10, 2024

For issue #889

Perform an additional check on precision, and cast to an integer if it is 0.

@Raymi306 Raymi306 changed the title round filter: perform cast to i64 if precision is 0 round filter: perform cast to i128 if precision is 0 Feb 10, 2024

// Do we need to return an integer or a float?
if precision == 0 {
Ok(to_value(intermediate_result as i128).unwrap())
Copy link
Owner

Choose a reason for hiding this comment

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

isn't i128 in serde_json converted to a string?

@Raymi306
Copy link
Author

Raymi306 commented Feb 12, 2024 via email

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.

2 participants