2016-07-28 85 views
-1

我要計算百分比,但是當我再乘以100,我得到一個錯誤:bigdecimal is not defined for the type Im here is the expression the Job tMap schema乘以整數使用TMAP

回答

0
  • 嘗試用新的BigDecimal(「100」)代替BigDecimal的(100)。
  • 然後,也許你必須在分割方法中使用舍入和精度,具體取決於你的數據:row1.col1.multiply(new BigDecimal(「100」))。divide(row1.col2,5,java.math .RoundingMode.HALF_UP);