From d2497d81648f26da0d806e4af94e06352090497b Mon Sep 17 00:00:00 2001 From: willkensonh Date: Fri, 12 Oct 2018 17:00:38 +1100 Subject: [PATCH] percentages shouldn't have commas by default --- src/Spout/Common/Entity/Style/NumberFormat.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Spout/Common/Entity/Style/NumberFormat.php b/src/Spout/Common/Entity/Style/NumberFormat.php index 33a167d..a82fb11 100644 --- a/src/Spout/Common/Entity/Style/NumberFormat.php +++ b/src/Spout/Common/Entity/Style/NumberFormat.php @@ -83,6 +83,9 @@ class NumberFormat $this->setCurrencySymbol('$'); } } + if ($type == self::TYPE_PERCENTAGE) { + $this->setCommas(false); + } return $this; }