Decimal problem in uipath

I want to keep only 1 number after decimal for column “price” and 2 number after decimal for column “volume”
tp.xlsx (8.1 KB)

@sshitol,

Use Format Cells activity for this. Use format Custom and format “0.0” for Price and “0.00” for Volume

Hi, @sshitol

Use format number like:

Hi @sshitol

To solve the decimal problem in UiPath:

For the “price” column (1 decimal place):

Use the Math.Round(price, 1) function.

For the “volume” column (2 decimal places):

Use the Math.Round(volume, 2) function.

These functions round values ​​to the desired number of decimal places. Apply these operations inside a loop that goes through the rows of your Excel or DataTable table.