Файловый менеджер - Редактировать - /var/www/axolotl/data/www/axolotls.ru/www/bitrix/modules/sale/lib/pricemaths.php
Назад
<?php namespace Bitrix\Sale; use Bitrix\Main; class PriceMaths { private static $valuePrecision = null; /** * @param $value * * @return float * @throws Main\ArgumentNullException */ public static function roundPrecision($value) { if (!isset(self::$valuePrecision)) { self::$valuePrecision = (int)Main\Config\Option::get('sale', 'value_precision'); if (self::$valuePrecision <= 0) { self::$valuePrecision = 2; } } return round(doubleval($value), self::$valuePrecision); } /** * @deprecated Use \Bitrix\Sale\PriceMaths::roundPrecision instead it * * @param $price * @param $currency * * @return float */ public static function roundByFormatCurrency($price, $currency) { return floatval(SaleFormatCurrency($price, $currency, false, true)); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.8 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка