iReprot 運算 除法

在 irport 中新增一個變量,表達式中寫入以下的語句: ($F{TOTAL_COUNT_1}.doubleValue() != 0)?(new Double($F{AVAILAB_COUNT_1}.doubleValue()/$F{TOTAL_COUNT_1}.doubleValue())):(new Double("0"))
相關文章
相關標籤/搜索