src/Alg/UnitFormater.php
public static function formatNumber( $float, $unit = 1, $precision = 0 )
	{
		Deprecation::getInstance()->setExceptionVersion( '0.8' )
			->message(  'Use one of the other methods instead' );
		if( (int) $unit )
		{
			$float	= $float / $unit;
			if( is_int( $precision ) )
				$float	= round( $float, $precision );
		}
		return $float;
	}
public static function formatNumber( $float, $unit = 1, $precision = 0 )
	{
		Deprecation::getInstance()->setExceptionVersion( '0.8' )
			->message(  'Use one of the other methods instead' );
		if( (int) $unit )
		{
			$float	= $float / $unit;
			if( is_int( $precision ) )
				$float	= round( $float, $precision );
		}
		return $float;
	}
public static function formatNumber ( $ float , $ unit = 1 , $ precision = 0 ) { Deprecation :: getInstance ( ) -> setExceptionVersion ( '0.8' ) -> message ( 'Use one of the other methods instead' ) ; if ( ( int ) $ unit ) { $ float = $ float / $ unit ; if ( is_int ( $ precision ) ) $ float = round ( $ float , $ precision ) ; } return $ float ; }
Formats Number.
@access		public
@static
@param		float		$float			Number to format
@param		int			$unit			Number of Digits for dot to move to left
@param		int			$precision		Number of Digits after dot
@return		void
@deprecated	uncomplete method, please remove
Formats Number .