a number formatting is possible?
#2

pawn Код:
stock FormatNumber(iNum, const szChar[] = ",")
{
    new
        szStr[16]
    ;
    format(szStr, sizeof(szStr), "%d", iNum);

    for(new iLen = strlen(szStr) - 3; iLen > 0; iLen -= 3)
    {
        strins(szStr, szChar, iLen);
    }
    return szStr;
}
Reply


Messages In This Thread
a number formatting is possible? - by rollercaster - 24.07.2018, 15:17
Re: a number formatting is possible? - by KinderClans - 24.07.2018, 17:09
Re: a number formatting is possible? - by rollercaster - 24.07.2018, 20:18
Re: a number formatting is possible? - by KinderClans - 24.07.2018, 20:26
Re: a number formatting is possible? - by rollercaster - 24.07.2018, 20:27
Re: a number formatting is possible? - by KinderClans - 24.07.2018, 20:46
Re: a number formatting is possible? - by rollercaster - 24.07.2018, 20:56
Re: a number formatting is possible? - by KinderClans - 24.07.2018, 20:59
Re: a number formatting is possible? - by Logic_ - 25.07.2018, 13:17

Forum Jump:


Users browsing this thread: 4 Guest(s)