Question:
I have 12345678
as text how to get 12,345,678
? And as many more numbers between single quote?
I tried this code, but it's qualified for 123456.length <= 6
:-
if (int.length > 3) {
int = int.substr(0, int.length - 3) + "," + int.substr(int.length - 3, 3);
}