Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
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