roundValue
float|integer public static \Bitrix\Catalog\Product\Price::roundValue( float|integer $value, float|integer $precision, integer $type );
Method rounds off a value according to the specified precision and round off type. Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$value | Rounded off value. | |
$precision | Round off precision. | |
$type | Round off type. |
Example
© «Bitrix24», 2001-2024