DIR : /home/kozerus/public_html/piwigo/include/smarty/libs/plugins/modifier.number_format.php

/home/kozerus/public_html/piwigo/include/smarty/libs/plugins

<?php
/**
 * Smarty plugin
 *
 * @package    Smarty
 * @subpackage PluginsModifier
 */

/**
 * Smarty number_format modifier plugin
 * Type:     modifier
 * Name:     number_format
 * Purpose:  Format a number with grouped thousands
 *
 * @param float|null  $num
 * @param int         $decimals
 * @param string|null $decimal_separator
 * @param string|null $thousands_separator
 *
 * @return string
 */
function smarty_modifier_number_format($num, int $decimals = 0, $decimal_separator = ".", $thousands_separator = ",")
{
    // provide $num default to prevent deprecation errors in PHP >=8.1
    return number_format($num ?? 0.0, $decimals, $decimal_separator, $thousands_separator);
}
//


koh5_pano



Your browser does not support the HTML5 canvas element.


Drag mouse to navigate.

Navigation





17.Aug.2010, Martin Wengenmayer