public function ComputedDecimalItem::executeCode in Computed Field 8.2
Same name and namespace in other branches
- 3.x src/Plugin/Field/FieldType/ComputedDecimalItem.php \Drupal\computed_field\Plugin\Field\FieldType\ComputedDecimalItem::executeCode()
Return value
float The floating point number.
Overrides ComputedFieldItemTrait::executeCode
File
- src/
Plugin/ Field/ FieldType/ ComputedDecimalItem.php, line 126
Class
- ComputedDecimalItem
- Plugin implementation of the 'computed_decimal' field type.
Namespace
Drupal\computed_field\Plugin\Field\FieldTypeCode
public function executeCode() {
return round(parent::executeCode(), $this
->getSettings()['scale']);
}