Column values to 2 decimal places

Hi, i have a dt with some columns that are in string.
e.g.
1210.1
12
1032.12

Is there any way to convert the whole column value to 2 decimal places, which doesnt use the for each row method?

Hi @TyraS ,

Check this out:

Regards,

@TyraS

You can use compute to do this using assign activity

dt = dt.Compute("Round([ColumnName], 2)", "")

cheers

@TyraS

Check below for your reference

Hope this will help you

Thanks,
Srini