This commit is contained in:
James Cole 2022-12-26 06:23:06 +01:00
parent bdf7d3978f
commit 89ab62fff2
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -108,6 +108,9 @@ class Steam
if(null === $number) {
return '0';
}
if('' === trim($number)) {
return '0';
}
if (str_contains($number, '.')) {
if ($number[0] !== '-') {
return bcadd($number, '0.'.str_repeat('0', $precision).'5', $precision);