PHP Class Coduo\PHPHumanizer\String\BinarySuffix

Afficher le fichier Open project: coduo/php-humanizer Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( integer $number, string $locale = 'en', integer $precision = null )
convert ( )

Méthodes protégées

Méthode Description
setSpecificPrecisionFormat ( integer $precision ) Replaces the default ICU 56.1 decimal formats defined in $binaryPrefixes with ones that provide the same symbols but the provided number of decimal places.

Method Details

__construct() public méthode

public __construct ( integer $number, string $locale = 'en', integer $precision = null )
$number integer
$locale string
$precision integer

convert() public méthode

public convert ( )

setSpecificPrecisionFormat() protected méthode

Replaces the default ICU 56.1 decimal formats defined in $binaryPrefixes with ones that provide the same symbols but the provided number of decimal places.
protected setSpecificPrecisionFormat ( integer $precision )
$precision integer