/** * This file is part of the PWAK (PHP Web Application Kit) framework. * * PWAK is a php framework initially developed for the * {@link http://onlogistics.googlecode.com Onlogistics} ERP/Supply Chain * management web application. * It provides components and tools for developers to build complex web * applications faster and in a more reliable way. * * PHP version 5.1.0+ * * LICENSE: This source file is subject to the MIT license that is available * through the world-wide-web at the following URI: * http://opensource.org/licenses/mit-license.php * * @package PWAK * @author ATEOR dev team <*****@*****.**> * @copyright 2003-2008 ATEOR <*****@*****.**> * @license http://opensource.org/licenses/mit-license.php MIT License * @version SVN: $Id$ * @link http://pwak.googlecode.com * @since File available since release 0.1.0 * @filesource */ function grid_filter_formatpercent($number, $dec_num = 2, $skip_zeros = false) { return $number === false || $number === "" || $number === null ? 'N/A' : I18N::formatPercent($number, $dec_num, $skip_zeros); }