<?php
/*
* Smarty plugin
*
-------------------------------------------------------------
* File: modifier.number_format.php
* Type: modifier
* Name: number_format
* Version: 1.0
* Date: May 1st, 2002
* Purpose: pass value to PHP number_format() and return result
* Install: Drop into the plugin directory.
* Author: Jason E. Sweat <hide@address.com>
*
-------------------------------------------------------------
*/
function smarty_modifier_number_format($number, $decimals = 2, $dec_point = '.', $thousands_sep = ',')
{
return number_format($number, $decimals, $dec_point, $thousands_sep);
}
/* vim: set expandtab: */
?>