1 <?php defined('SYSPATH') OR die('No direct access allowed.');
5 * $Id: num.php 3769 2008-12-15 00:48:56Z zombor $
9 * @copyright (c) 2007-2008 Kohana Team
10 * @license http://kohanaphp.com/license.html
15 * Round a number to the nearest nth
17 * @param integer number to round
18 * @param integer number to round to
21 public static function round($number, $nearest = 5)
23 return round($number / $nearest) * $nearest;