• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/product/price.php
  • Класс: BitrixCatalogProductPrice
  • Вызов: Price::roundPrice
static function roundPrice($priceType, $price, $currency)
{
	$price = (float)$price;
	if ($price <= 0)
		return $price;
	$priceType = (int)$priceType;
	if ($priceType <= 0)
		return $price;
	$rule = static::searchRoundRule($priceType, $price, $currency);
	if (empty($rule))
		return $price;
	return static::roundValue($price, $rule['ROUND_PRECISION'], $rule['ROUND_TYPE']);
}