Skip to content

Conversation

@Raymi306
Copy link
Contributor

@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
Contributor 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