CurrencyBundleInterface::getRoundingIncrement()

float|int|null getRoundingIncrement(string $currency)

Returns the rounding increment of a currency.

The rounding increment indicates to which number a currency is rounded. For example, 1230 rounded to the nearest 50 is 1250. 1.234 rounded to the nearest 0.65 is 1.3.

Parameters

string $currency A currency code (e.g. "EUR")

Return Value

float|int|null The rounding increment or NULL if not found
doc_Symfony
2016-10-28 06:12:48
Comments
Leave a Comment

Please login to continue.