diff --git a/src/NumberFormatter/Concerns/HasCustomFormatters.php b/src/NumberFormatter/Concerns/HasCustomFormatters.php index dae2dbc7..9f228823 100644 --- a/src/NumberFormatter/Concerns/HasCustomFormatters.php +++ b/src/NumberFormatter/Concerns/HasCustomFormatters.php @@ -26,7 +26,7 @@ public function formatWithCurrencyCustom(int | float | string $value, string $cu $result = $this->formatWithDecimal((float) $value); if (Str::contains((string) $value, '.')) { - $result = number_format((float) ResolveScientificNotation::execute((float) $value), $decimals ?? 8); + $result = number_format((float) ResolveScientificNotation::execute((float) $value), $decimals ?? config('currencies.decimals.crypto', 8)); if (Str::contains((string) $result, '.')) { $result = rtrim(rtrim((string) $result, '0'), '.');