This commit is contained in:
James Cole 2022-12-27 13:02:17 +01:00
parent 89ab62fff2
commit e468d5b892
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -111,6 +111,7 @@ class Steam
if('' === trim($number)) {
return '0';
}
Log::debug(sprintf('Trying bcround("%",%d)', $number, $precision));
if (str_contains($number, '.')) {
if ($number[0] !== '-') {
return bcadd($number, '0.'.str_repeat('0', $precision).'5', $precision);