Expand my Community achievements bar.

# Adobe Campaign Classic v7 & Campaign v8

SOLVED

## round the percent

Level 5

Hi team,

Is there a way to round the decimal points for the function below:

```(percent([indicators/@estimatedRecipientOpen],[indicators/@successWithoutSeeds]))*100
```

`round((percent([indicators/@estimatedRecipientOpen],[indicators/@successWithoutSeeds]))*100, 2)`

but it throws an error saying that the round function requires 2 or 3 arguments. Please suggest how I can achieve this.

```<node expr="(percent([indicators/@estimatedRecipientOpen],[indicators/@successWithoutSeeds]))*100" alias="@OpenRate"/>
```

1 Accepted Solution

Level 5

I was able to sort this out by using the below expression:

`````` <node expr="ToInteger((Percent([indicators/@estimatedRecipientOpen],[indicators/@successWithoutSeeds]))*1000)/10" alias="@OpenRate"/>
<node expr="ToInteger((Percent([indicators/@recipientClick], [indicators/@estimatedRecipientOpen]))*1000)/10" alias="@ClickRate"/> ``````

Thank you

6 Replies

Level 7

Try using this expresion in the expr field

Round(<number>, <number of decimals>)

hHi @rvnth ,

Please try this way and let me know if it works

`Round((Percent([indicators/@estimatedRecipientOpen],[indicators/@successWithoutSeeds]))*100, 2)`

Regards,

Pravallika.

Level 5

Thank you. It worked, but for one delivery, the decimal is still not rounding off to two decimal places. Please advise.

Thanks!

Level 5

I was able to sort this out by using the below expression:

`````` <node expr="ToInteger((Percent([indicators/@estimatedRecipientOpen],[indicators/@successWithoutSeeds]))*1000)/10" alias="@OpenRate"/>
<node expr="ToInteger((Percent([indicators/@recipientClick], [indicators/@estimatedRecipientOpen]))*1000)/10" alias="@ClickRate"/> ``````

Thank you