n. Write its decimal form as a string, splitting the digits into groups of three from right to left and putting a dot . between the groups. The leftmost group may have one, two or three digits.
Return the resulting string.n=45067 → '45.067'
The last three digits 067 are split off, leaving 45 in front: "45.067".
n=812 → '812'
The number has only three digits, so no separator is needed.
n=3000000 → '3.000.000'
Two full groups of zeros are split off with dots: "3.000.000".
n ≤ 2³¹ − 1n=45067
'45.067'
Run checks the first 3 tests in your browser. Submit checks all 34 tests on the server, hidden ones included.