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

Decimals (float) in avg expressions. #469

Merged
merged 3 commits into from
Jun 24, 2024

Conversation

awensaunders
Copy link
Contributor

This intends to add the ability to calculate averages with an arbitrary number of decimal places.

This relates to calculating an average FSS on gbv
with decimal places. Right now we emit a string,
but ideally this would be able to emit a float.
This introduces a new syntax for avg (and other
mathematical operators, but they have essentially
no use with them). You can now specify the number
of decimal places when computing the average. For
example, you can do {"avg": {"data": ["a", "b",
"c"] "extra":{"decimalPlaces": 2}}}, rather than
the old format of {"avg": ["a", "b", "c"]}.
@awensaunders awensaunders marked this pull request as ready for review June 24, 2024 14:07
@jtoliver-quoin jtoliver-quoin merged commit e98440a into primeroIMS:develop Jun 24, 2024
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