[Ajuda] Formataзгo de Nъmeros em Decimal
#2

Usa esta funcao:

PHP код:
IntegerWithDelimiter(integerdelimiter[] = ",")
{
    new
        
string[16];
    
format(stringsizeof string"%i"integer);
    for (new 
strlen(string) - 3= ((integer 0) ? 0); j-= 3)
    {
        
strins(stringdelimiterisizeof string);
    }
    return 
string;

como usar: IntegerWithDelimiter(1000000, ",")

Creditos pela funcao: Konstantinos
Reply


Messages In This Thread
Formataзгo de Nъmeros em Decimal - by nonnemacher - 23.04.2016, 02:25
Re: Formataзгo de Nъmeros em Decimal - by PT - 23.04.2016, 03:49
Re: Formataзгo de Nъmeros em Decimal - by nonnemacher - 23.04.2016, 04:54

Forum Jump:


Users browsing this thread: 1 Guest(s)