multiply by integer using tMap

One Star

multiply by integer using tMap

Hello,
I want to calculate a percentage but when I multiply by 100 I get an error : bigdecimal is not defined for the type Im 
Moderator

Re: multiply by integer using tMap

Hi,
There is not enough information for us to address your issue.
Could you please post your tMap editor screenshot with expression into forum?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: multiply by integer using tMap

here is my expression 
 
Moderator

Re: multiply by integer using tMap

Hi,
Have you checked mathematics operation (add, subtract, multiply, divide etc) with data type bigdecimal in doc:http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?
You can use setScale() function for bigdecimal which will help u for rounding or setting the scale. Elaborating your case with an example with input and expected output values will be preferred.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.