• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/components/itemdetail.php
  • Класс: BitrixRpaComponentsItemDetail
  • Вызов: ItemDetail::prepareSingleValue
protected function prepareSingleValue($value)
{
	if(is_float($value))
	{
		$value = sprintf('%f', $value);
		$value = rtrim($value, '0');
		$value = rtrim($value, '.');
	}
	elseif(is_object($value) && method_exists($value, '__toString'))
	{
		$value = $value->__toString();
	}

	return $value;
}