★ wanayoo — archive 1999 http://fr.php.net/manual/pt_BR/function.number-format.phpNouvelle recherche | Portail wanayoo
PHP Sunday, March 11, 2001  
downloads | documentation | faq | support | reporting bugs | links 

search for in the  

lookup:
Manual do PHPManual do PHP
Math.Math.
 absabs
 acosacos
 asinasin
 atanatan
 atan2atan2
 base_convertbase_convert
 bindecbindec
 ceilceil
 coscos
 decbindecbin
 dechexdechex
 decoctdecoct
 deg2raddeg2rad
 expexp
 floorfloor
 getrandmaxgetrandmax
 hexdechexdec
 lcg_valuelcg_value
 loglog
 log10log10
 maxmax
 minmin
 mt_randmt_rand
 mt_srandmt_srand
 mt_getrandmaxmt_getrandmax
 number_formatnumber_format
 octdecoctdec
 pipi
 powpow
 rad2degrad2deg
 randrand
 roundround
 sinsin
 sqrtsqrt
 srandsrand
 tantan

previousmt_getrandmax
octdecnext

Last updated: Fri, 02 Mar 2001
view this page in English | Brazilian Portuguese | Dutch | French | German | Hungarian | Italian | Japanese | Korean | Spanish | Plain HTML

number_format

(PHP 3, PHP 4 )

number_format -- Format a number with grouped thousands

Description

string number_format (float number, int decimals, string dec_point, string thousands_sep)

Number_format() returns a formatted version of number. This function accepts either one, two or four parameters (not three):

If only one parameter is given, Number will be formatted without decimals, but with a comma (",") between every group of thousands.

If two parameters are given, number will be formatted with decimals decimals with a dot (".") in front, and a comma (",") between every group of thousands.

If all four parameters are given, number will be formatted with decimals decimals, dec_point instead of a dot (".") before the decimals and thousands_sep instead of a comma (",") between every group of thousands.

previousmt_getrandmax
octdecnext

Last updated: Fri, 02 Mar 2001
add note | about notes

show source | credits | mirror sites:  

Copyright © 1998-2001 The PHP Group
All rights reserved.
This mirror generously provided by: L'Université Michel de Montaigne Bordeaux III
Last updated: Sun Mar 11 08:30:54 2001 MET