Skip to content

Commit

Permalink
Update Sources/Localization/MessageFormatter.php
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Stovell <[email protected]>
  • Loading branch information
live627 and Sesquipedalian authored Apr 1, 2024
1 parent 7b52a5a commit 25bc690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Localization/MessageFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ protected static function applyNumberSkeleton(int|float|string $number, string $

// Ensure $number is a string.
if (is_float($number)) {
$precision = (int) strpos(strrev(strval($number)), '.') - strlen(strval(intval($number + 0))) - 1;
$precision = (int) strpos(strrev(strval($number)), '.');
$number = sprintf("%{$flags}.{$precision}F", $number);
} elseif (is_int($number)) {
$number = sprintf("%{$flags}d", $number);
Expand Down

0 comments on commit 25bc690

Please sign in to comment.