If you want a shorter stuff.
PHP Code:
//Number must be the number that you want to pointed (integrer)
new str[15], strpointed[15], len
num_to_str(number, str, 14)
len=strlen(str)
new c
for (new i=0;i<len;i++) {
if (i!=0 && ( (len-i)%3==0) ) {
add(strpointed, 14, ".", 1)
c++
add(strpointed[i+c], 1, str[i], 1)
}
else
add(strpointed[i+c], 1, str[i], 1)
}
//strpointed is the number with '.'