Class Currency
A currency.
<?php use ICanBoogie\CLDR\Currency; $euro = new Currency($cldr, 'EUR'); # or $euro = $cldr->currencies['EUR']; echo $euro->code; // EUR echo $euro->digits; // 2 echo $euro->rounding; // 0 echo $euro->cash_digits; //
- ICanBoogie\CLDR\Currency uses ICanBoogie\Accessor\AccessorTrait (not available) ICanBoogie\CLDR\RepositoryPropertyTrait, ICanBoogie\CLDR\CodePropertyTrait
Namespace: ICanBoogie\CLDR
See: http://unicode.org/reports/tr35/tr35-numbers.html#Supplemental_Currency_Data
Located at Currency.php
See: http://unicode.org/reports/tr35/tr35-numbers.html#Supplemental_Currency_Data
Located at Currency.php
Methods summary
public
|
|
public
|
|
public
|
Methods used from ICanBoogie\CLDR\RepositoryPropertyTrait
Methods used from ICanBoogie\CLDR\CodePropertyTrait
Constants summary
string |
FRACTION_FALLBACK
|
#
'DEFAULT'
|
Properties summary
Magic properties
public read-only
string
|
$code
The ISO 4217 code for the currency. |
public read-only
integer
|
$digits
The minimum and maximum number of decimal digits normally formatted. |
public read-only
integer
|
$rounding
The rounding increment, in units of 10^-digits. |
public read-only
integer
|
$cash_digits
The number of decimal digits to be used when formatting quantities used in cash transactions. |
public read-only
integer
|
$cash_rounding
The cash rounding increment, in units of 10^cashDigits |