13.06.2012, 17:44
Hi mates,i need a func. that translates entered integer value to money,example : entry: 50000,return : 50.000
I mean,i want something that can write dots
I mean,i want something that can write dots
stock convertNumber(value) { new string[24] ; format(string, sizeof(string), "%d", value); for(new i = (strlen(string) - 3); i > (value < 0 ? 1 : 0) ; i -= 3) { strins(string[i], ".", 0); } return string; }