Extension:NumberFormat

What can this extension do?
Numbers can be formatted by grouping thousands and/or specifying the number of decimals to be shown, the number will be rounded when necessary. The symbols used as thousands separator and decimal point can optionally be specified.

This extension is most useful in conjunction with other extensions that print "raw" numbers — for example Semantic MediaWiki (see this tip on how to use NumberFormat with SMW).

NumberFormat is a simple wrapper for the number_format PHP function.

Usage
 

where:
 * 1) number - the number being formatted (default empty)
 * 2) decimals - sets the number of decimal points (default "0")
 * 3) dec_point - sets the separator for the decimal point (default ".")
 * 4) thousands_sep - sets the thousands separator (default ",")
 * 5) orig_dec_point - sets the separator for the decimal point in original number (default not set)

Download instructions
Download NumberFormat and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php: