How to add comma to number (function)

I would like to add comma for my currency ui how could I achieve this

This sort of thing has been asked before and you could find it pretty easily. Here’s an easy method.