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
Evaluation of ACOS(-2) throws a NumberFormatException.
It would be preferable to throw an EvaluationException, as you have already done for the ASIN() function.
See issue #361: Evaluation of asin(1.5) will throw NumberFormatException which is a bit misleading
Remark:
There could be another way (the basic Java way for invalid math) for this general topic : to accept that EvaluationValue could hold Double.NaN or Float.NaN. But it is a matter of choice…
The text was updated successfully, but these errors were encountered:
Evaluation of ACOS(-2) throws a
NumberFormatException
.It would be preferable to throw an
EvaluationException
, as you have already done for the ASIN() function.See issue #361: Evaluation of asin(1.5) will throw NumberFormatException which is a bit misleading
Remark:
There could be another way (the basic Java way for invalid math) for this general topic : to accept that
EvaluationValue
could hold Double.NaN or Float.NaN. But it is a matter of choice…The text was updated successfully, but these errors were encountered: