Documentation

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

ParameterDescriptionVersion
$valueRounded off value.
$precisionRound off precision.
$typeRound off type.

Example



© «Bitrix24», 2001-2024