Format BigDecimal, removing decimal Point

Five Stars

Format BigDecimal, removing decimal Point

Hello friends, a question how to format the numbers according to the following examples:

 

035190.72

644771.60

285366.60

249985.14

419719.68

 

to

 

03519072

64477160

28536660

24998514

41971968

 

 

Highlighted
Forteen Stars

Re: Format BigDecimal, removing decimal Point

@guiibarbosaa92,i suggest you to read the column as sting and then use replaceAll function to remove "." and then convert sting to Bigdecimal.

 

row1.col.removeAll("\\.","")

 

 

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Five Stars

Re: Format BigDecimal, removing decimal Point

Hi friend, thanks for you solution.

 

I got it by using the following solution:

 

StringHandling.RIGHT("000000000" +mycolumn,9).replace(".", ""); 

Forteen Stars

Re: Format BigDecimal, removing decimal Point

 

-- removed as not proper 

-----------

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog