posted 15 years ago
I need to format numbers that are represented as both as ints and doubles.
So String1 = "123123123.455"
I want to convert to "123,123,123.455"
And String2 = "123123123"
convert to "123,123,123"
What is the best way to do this? I played around with String.format, but I am not sure what the mask would look like.