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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Multiply method with BigDecimal

Hi,
I'm using TOS v.3.1.3 and facing an error with the multiply method :
In TMAP, i have created a variable with BigDecimal type.
In this variable, I am trying to do this simple operation : row3.myamount.multiply(1000) -- row3.myamount is a bigdecimal too.
But while i'm trying to use this code, i'm facing this error :
"The method multiply (BigDecimal) of BigDecimal type does not apply to arguments (int)"
Can someone help me ?
Thx in advance

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hello,
1000 is not a BigDecimal, that's why you have this error. You can do :
row3.myamount.multiply(BigDecimal.valueOf(1000))

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi,
after some help from a friend, I improve this solution :
- creating a variable "toto" = PersoNumeric.conversionBigDecimal("1000")
- in a second variable = row3.myamount.multiply(Var.toto)
Anonymous
Not applicable
Author

Hello,
1000 is not a BigDecimal, that's why you have this error. You can do :
row3.myamount.multiply(BigDecimal.valueOf(1000))