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
I'd expect 1e to print 2.71828182846 instead I'm getting an exception:
java.lang.NumberFormatException: For input string: ""
at java.lang.Integer.parseInt(Integer.java:627)
at java.lang.Integer.parseInt(Integer.java:650)
at java.math.BigDecimal.<init>(BigDecimal.java:336)
at java.math.BigDecimal.<init>(BigDecimal.java:444)
at com.udojava.evalex.Expression$59.eval(Expression.java:1363)
at com.udojava.evalex.Expression.eval(Expression.java:1398)
at com.udojava.evalex.Expression.eval(Expression.java:1273)
The text was updated successfully, but these errors were encountered:
My problem is similar to the one from @flashtek. The input is coming from a user and he'd expect it to be multiplied.
E.g. What about A5BSIN(2) - is this a function named A5BSIN or an expression A5SIN(2) ?
If a function with a name A5BSIN is defined then it should take precedence. Otherwise A*5*SIN(2) as long as A can be satisfied. If none can then it can crash.
I'd expect
1e
to print2.71828182846
instead I'm getting an exception:The text was updated successfully, but these errors were encountered: