How to convert String Datatype value in Comma separated value?

studio
variable

#1

Hi Team,

I have following value which I have to convert in comma separated value.

Input - strValue = "588300"
Expected Output - = “5,88,300”

I have tried searching but can find any default function in UIPath. Kindly assist me for same.ConvertStringValueInCommaSeperatedval.xaml (4.3 KB)


I am looking for number format as per following 1200,00,000.00
#2

Integer.parse("588300").toString("##,##,###")
try this


#3

Thanks for reply. I have tried but value is coming like
588,300.

My expected output is 5,88,300, Also, if any other value comes like 65656300 then output should appear 6,56,56,300. Kindly assist.


#4

@kawalkarhemant
stra="1234565"
try this it will work
string.Format(System.Globalization.CultureInfo.GetCultureInfo(“en-IN”),"{0:n}",Convert.ToDouble(stra))
it will give 12,34,565.00
after that you can remove if you dont want decimal values

Regards,
Mahesh


How to round of a decimal to the nearest value?
#5

Great answer buddy. Appreciate your help.