1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Updates for number rounding with negative numbers

This commit is contained in:
David Bomba 2023-03-06 11:37:53 +11:00
parent b8abf9b3f8
commit 7d871edd4e

View File

@ -238,7 +238,9 @@ class Number
$precision = 2;
} elseif ($v < 1) {
$precision = strlen($v) - strrpos($v, '.') - 1;
} elseif(is_array($parts) && $parts[0] != 0) {
}
if(is_array($parts) && $parts[0] != 0) {
$precision = 2;
}