Add a comma when number greater than 1000

I have this string revenue: 1466
How can I put a comma on this position: 1,466 whenever this number is greater than 1000 which means has a length of 4 characters.

Thank You Guys

Hi @hurmet.noka

Please check below solution for the same.

1 Like

grafik

1 Like

Hi @hurmet.noka

Its N and Zero. (N0)

You can have it in below formats if you want:

image

1 Like

image

Revenue is String Already

grafik
then we will parse the string into an int32

1 Like

Cint(Revenue).Tostring(“N0”)

Use this!

@hurmet.noka Cheers!

1 Like

Thanks a lot Maestro!

In additon to the currencies also have a look at this:
grafik

1 Like

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