src/Type/DecimalType.php
public function encode($value, Field $field, Codec $codec = null)
    {
        return (float) bcadd((float) $value, '0', $field->getScale());
    }
public function encode($value, Field $field, Codec $codec = null)
    {
        return (float) bcadd((float) $value, '0', $field->getScale());
    }
{@inheritdoc}