Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
rayzorsan
Contributor II
Contributor II

Calculating BigDecimal with Double Expression Syntax

Hello,

 

I believe I am using incorrect syntax in the expression builder. I want to calculate a row that is big decimal with a row that is double.

 

Row 1 has a unit price which is a big decimal.

Row 2 has a conversion rate which is a double.

 

BigDecimal.valueOf(row1.UnitPrice.doubleValue() * row2.Conversion_Rate__c) 

 

Error Message is: 

Exception in thread "main" java.lang.Error: Unresolved compilation problem: 

 

Is there something else I need to check?

 

Thanks

Labels (2)
1 Reply
rayzorsan
Contributor II
Contributor II
Author

Okay this ended up in the wrong topic because of the autopopulation thing for subject. I cannot move it to where it should be.