Variable type to 2 decimals with comma

Hi.
I am trying to replace text in a word document with the numbers in the format XXX,XXX.XX using the replace text activity. I need the decimals to be in 2 decimals place. The numbers are from an excel and currently saved as a System.Double variable type.

What do I type as an argument in the “Replace With” box?

in case of it is already a double we can format e.g.:
grafik

(123456.78).toString(“N2”)
YourDoubleVar.toString(“N2”)

Alternate apprach: Use Truncate method - Math.Truncate(Value)

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.