Limit the decimal after changing the culture

I have value which is 100000.000 and I need like this 100,000 but when I use the culture function
I got 100,000.000
how to resolve this?

HI @agathiyanv

Assign your string value to the generic value datatype
Use format value activity

image

Hope this Helps!

Regards
Sudharsan

1 Like

You can also use this value as input @agathiyanv
image

Regards
Sudharsan

1 Like

Hi,

FYI, another solution:

image

Double.Parse("100000.000").ToString("n0")

Regards,

What if we have values after the decimal?
like 100000.234

HI,

How about either of the following?

Double.Parse("100000.234").ToString("n0")

image

Double.Parse("100000.234").ToString("#,0.####")

image

Regards,

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