diff --git a/src/PhpSpreadsheet/Cell/Cell.php b/src/PhpSpreadsheet/Cell/Cell.php index 416b4a9909..a6c6a80e05 100644 --- a/src/PhpSpreadsheet/Cell/Cell.php +++ b/src/PhpSpreadsheet/Cell/Cell.php @@ -217,7 +217,7 @@ public function setValueExplicit($pValue, $pDataType) break; case DataType::TYPE_NUMERIC: - $this->value = (float) $pValue; + $this->value = 0 + $pValue; break; case DataType::TYPE_FORMULA: