number_format

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Format a number with grouped thousands
number_format(    float $num,    int $decimals 0,    ?string $decimal_separator ".",    ?string $thousands_separator ","): string
            throw $e;

        } finally {

            
$runTime $task

                
? (' '.number_format((microtime(true) - $startTime) * 10002).'ms')

                : 
'';



            
$runTimeWidth mb_strlen($runTime);
    protected function asDecimal($value$decimals)

    {

        return 
number_format($value$decimals'.''');

    }
            $this->output->write("  <fg=gray>{$formattedStartedAt}</> {$job->resolveName()}");

        }



        
$runTime number_format((microtime(true) - $this->latestStartedAt) * 10002).'ms';

        
$dots max(terminal()->width() - mb_strlen($job->resolveName()) - mb_strlen($runTime) - 310);



        
$this->output->write(' '.str_repeat('<fg=gray>.</>'$dots));
            if ($exitCode === 1) {

                
$this->output->writeln(sprintf(

                    
"\n  <fg=white;bg=red;options=bold> FAIL </> Code coverage below expected:<fg=red;options=bold> %s %%</>. Minimum:<fg=white;options=bold> %s %%</>.",

                    
number_format($coverage1),

                    
number_format($this->coverageMin1)

                ));

            }
                $this->output->writeln(sprintf(

                    
"\n  <fg=white;bg=red;options=bold> FAIL </> Code coverage below expected:<fg=red;options=bold> %s %%</>. Minimum:<fg=white;options=bold> %s %%</>.",

                    
number_format($coverage1),

                    
number_format($this->coverageMin1)

                ));

            }

        }
            $percentage $file->numberOfExecutableLines() === 0

                
'100.0'

                
number_format($file->percentageOfExecutedLines()->asFloat(), 1'.''');



            
$takenSize strlen($rawName $percentage) + $linesExecutedTakenSize// adding 3 space and percent sign
        $terminalWidth $this->getTerminalWidth();



        
$url parse_url($request['url'], PHP_URL_PATH) ?: '/';

        
$duration number_format(round($request['duration'], 2), 2'.''');



        
$memory = isset($request['memory'])

            ? (
number_format($request['memory'] / 1024 12042'.''').' mb ')
        $duration number_format(round($request['duration'], 2), 2'.''');



        
$memory = isset($request['memory'])

            ? (
number_format($request['memory'] / 1024 12042'.''').' mb ')

            : 
'';



        [
'method' => $method'statusCode' => $statusCode] = $request;
    protected function sizeKilobytes()

    {

        return (float) 
number_format($this->sizeBytes() / 10242);

    }



    protected function 
sizeKb()
    protected function sizeMegabytes()

    {

        return (float) 
number_format($this->sizeBytes() / 10485762);

    }



    protected function 
sizeMb()
    protected function sizeGigabytes()

    {

        return (float) 
number_format($this->sizeBytes() / 10737418242);

    }



    protected function 
sizeGb()
            return $submission->get($field);

        });



        return 
number_format($value$this->get('precision'2));

    }

}
        $number floatval(str_replace(','''$value));



        return 
number_format($number$precision$dec_point$thousands_sep);

    }
            $pathinfo pathinfo($path);



            
$size File::size($path);

            
$kb number_format($size 10242);

            
$mb number_format($size 10485762);

            
$gb number_format($size 10737418242);
            $size File::size($path);

            
$kb number_format($size 10242);

            
$mb number_format($size 10485762);

            
$gb number_format($size 10737418242);



            
$data[] = [