当我尝试在 Jasper 中计算表达式时遇到问题。运行报告后显示错误消息。
Error filling print... Error evaluating expression : Source text : new Integer(($F{total_answer}.intValue()) / ($F{total_max_score}.intValue()*100))
Can't find the translation for key = time_picker: using default (Time) Can't find the translation for key = time_picker: using default (Time) For input string: "" For input string: "" java.lang.ArithmeticException: / by zero
这是我的代码:
new Integer(($F{total_answer}.intValue()) / ($F{total_max_score}.intValue()*100))
有人知道吗?