I have a string series of values which may or may not contain a floating point number. I want to add the thousands separator to this numeric string. I want to have the value with thousands separators and floating point number only when it's there. How can I do this?
Examples:
Input: 23456.78
Output: 23,456.78
Input: 23456
Output: 23,456