Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix https://github.com/firefly-iii/firefly-iii/issues/6743
James Colef350948fb281
diff --git a/app/Support/Steam.php b/app/Support/Steam.phpindex fd461da75d..e38787bfce 100644--- a/app/Support/Steam.php+++ b/app/Support/Steam.php@@ -105,15 +105,18 @@ class Steam*/public function bcround(?string $number, int $precision = 0): string{+if(null === $number) {return '0';}if('' === trim($number)) {return '0';}+ // if the number contains "E", it's in scientific notation, so we need to convert it to a normal number first.if(false !== stripos($number,'e')) {$number = sprintf('%.24f',$number);}+Log::debug(sprintf('Trying bcround("%s",%d)', $number, $precision));if (str_contains($number, '.')) {if ($number[0] !== '-') {