Jump to content

Multiply with 1.19


cotas

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

 A way of doing it... Showing how performing a calc against a variable of one type results in a total of another data type.

 

($V{SUM_Sales}.equals( new BigDecimal(0))) ?  new Double(0) :

new java.lang.Double(  ($V{SUM_Discount}.doubleValue()) / ( $V{SUM_Sales}.doubleValue()) )

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...