You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! This library is great. Im having just one requirement, however:
Is it possible to implement a method that returns the custom variables from the input given by the user?
For example, the user inputs:
String input = "(workHours^2 * workers)/100";
And for that given input, the method would return : "workHours", "workers".
I did a method that attempts to do that, it works fine except when the variable name contains a number.
For example:
String input = "workHours1^2 * workers2) / 100";
Hi,
I'm not sure to exactly understand your question, but maybe what you need is just to override the AbstractEvaluator.evaluate(Constant ,Object) method of your evaluator.
Hi! This library is great. Im having just one requirement, however:
Is it possible to implement a method that returns the custom variables from the input given by the user?
For example, the user inputs:
String input = "(workHours^2 * workers)/100";
And for that given input, the method would return : "workHours", "workers".
I did a method that attempts to do that, it works fine except when the variable name contains a number.
For example:
String input = "workHours1^2 * workers2) / 100";
The text was updated successfully, but these errors were encountered: