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

Function Average has a bug #499

Open
IrvingYuanStu opened this issue Sep 12, 2024 · 2 comments
Open

Function Average has a bug #499

IrvingYuanStu opened this issue Sep 12, 2024 · 2 comments

Comments

@IrvingYuanStu
Copy link

Expression expression = new Expression("AVERAGE(data)");
List list = List.of(2, 4, 6);
Double result = expression.with("data", list).evaluate().getNumberValue().doubleValue();
System.out.println(result);

@uklimaschewski
Copy link
Collaborator

The AVERAGE function doesn't support arrays as input parameter(s).
I'll mark this as an enhancement.

@oswaldobapvicjr
Copy link
Contributor

I can implement this enhancement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants