diff --git a/src/Format.php b/src/Format.php index 141fe69..f91e4d1 100644 --- a/src/Format.php +++ b/src/Format.php @@ -509,8 +509,8 @@ protected function createField($data) { $field = Field::create($data['t']); $field->setName(rtrim($data['n'])); $field->setLength($data['ll']); - if ($data['t'] == Field::TYPE_NUMERIC && isset($data['dd'])) { - $field->setDecimalCount(2); + if ($data['t'] === Field::TYPE_NUMERIC && isset($data['dd'])) { + $field->setDecimalCount($data['dd']); } return $field; }