Skip to content

Commit

Permalink
Merge pull request #231 from jmanucornejo/master
Browse files Browse the repository at this point in the history
Se corrige el formateador de decimales para que permita enviar más de dos decimales
  • Loading branch information
giansalex authored Dec 15, 2023
2 parents 02901b1 + 19ede68 commit 5755d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xml/src/Xml/Filter/FormatFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function numberLimit($number, $decimals): ?string
$numString = (string)$number;
$applyFormat = $this->getDecimalsLength($numString) > $decimals || strpos($numString, "E") !== false;

return $applyFormat ? $this->number($number, $decimals) : $this->number($numString);
return $applyFormat ? $this->number($number, $decimals) : $number;
}

private function getDecimalsLength(string $number): int
Expand Down

0 comments on commit 5755d88

Please sign in to comment.