/lib/template/smarty/plugins/modifier.number_format.php
PHP | 31 lines | 6 code | 2 blank | 23 comment | 0 complexity | cfd7ef702edfd6a15a52ce03a45ea4cd MD5 | raw file
Possible License(s): LGPL-3.0
- <?php
- /**
- -----------------------------------------------------------------------------
- * Smarty number_format modifier plugin
- *
- * returns a formatted number as of php number_format
- *
- -----------------------------------------------------------------------------
- -----------------------------------------------------------------------------
- * @copyright (C) 2011 Cyberfox Software Solutions e.U.
- * @license GNU Lesser General Public License version 3 (LGPLv3)
- * @author Christian Graf <christian.graf@cyberfox.at>
- -----------------------------------------------------------------------------
- -----------------------------------------------------------------------------
- * @package Application
- * @subpackage
- * @category Template
- -----------------------------------------------------------------------------
- -----------------------------------------------------------------------------
- # @version $Id: modifier.number_format.php 86 2012-05-08 08:13:17Z cgraf $
- # @date $Date: 2012-05-08 10:13:17 +0200 (Di, 08 Mai 2012) $
- # @svnauthor $Author: cgraf $
- -----------------------------------------------------------------------------
- */
- function smarty_modifier_number_format($String, $Decimals = 0, $DecSeperator=',', $ThousSeperator = '.')
- {
- return number_format($String, $Decimals, $DecSeperator, $ThousSeperator);
- }
- ?>