Human readable numbers
#3

pawn Code:
stock Comma(numbers)
{
    new temp[24],counter = -1;
    valstr(temp,numbers);
    for(new i = strlen(temp);i > 0; i--)
    {
        counter++;
        if(counter == 3)
        {
            strins(temp,",",i);
            counter = 0;
        }
    }
    return temp;
}
Use this to a number to put dots ..
pawn Code:
Comma(WhateverNumbers);
Reply


Messages In This Thread
Human readable numbers - by Dj_maryo1993 - 14.03.2014, 14:47
Re: Human readable numbers - by MP2 - 14.03.2014, 14:52
Re : Human readable numbers - by Golimad - 14.03.2014, 14:55
Re: Human readable numbers - by Dj_maryo1993 - 14.03.2014, 14:58
Re: Human readable numbers - by CuervO - 14.03.2014, 15:04
Re: Human readable numbers - by MP2 - 23.03.2014, 19:33

Forum Jump:


Users browsing this thread: 1 Guest(s)