How to round the price value in data?

Highlighted
Seven Stars

How to round the price value in data?

Hi Team,

 

I have a data like this with a column MYR , I need them to give a round value, For Ex: 625509.34 means required output 625510

Source Data type is Double , destination anything you want or same ? Empty records should be replaced with 0 as well.

 

Capture.PNG

 

Thanks & Regards,

Prabhakaran

 

 

 


Accepted Solutions
Highlighted
Eight Stars

Re: How to round the price value in data?

Hi 

input string output double

in tmap  expression builder write down

row1.price!=null?Double.parseDouble(row1.price):0

in output tmap

Math.ceil(Var.var1)

 

Regards

rekha

View solution in original post


All Replies
Highlighted
Eight Stars

Re: How to round the price value in data?

Hi 

input string output double

in tmap  expression builder write down

row1.price!=null?Double.parseDouble(row1.price):0

in output tmap

Math.ceil(Var.var1)

 

Regards

rekha

View solution in original post

2019 GARTNER 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

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog