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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Eric_Talend
Creator
Creator

How to use BigDecimal.ROUND_HALF_UP in tMap ?

Hello,

I have a problem with ROUND_HALP_UP.

I must use it in tMap but it doesn't work.

For exemple, I have this date "montant_ht" who is a double.

I would like to round it to the main neighbour.

So, I find the fonction "ROUND_HALF_UP' but I have a problem when I use it.

Where is my mistake ?

Kind regards.

Labels (2)
1 Reply
Anonymous
Not applicable

Hi

The function ROUND_HALF_UP is defined for BigDecimal, so you need to convert double type to BigDecimal type first.

 

Regards

Shong