• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/discount/discountmanager.php
  • Класс: BitrixCatalogDiscountDiscountManager
  • Вызов: DiscountManager::roundValue
static function roundValue($value, string $currency): float
{
	if (self::$saleIncluded === null)
		self::$saleIncluded = Loader::includeModule('sale');
	if (self::$saleIncluded)
		return SaleDiscountActions::roundValue($value, $currency);
	else
		return roundEx($value, CATALOG_VALUE_PRECISION);
}