Updates for number rounding with negative numbers
This commit is contained in:
parent
b8abf9b3f8
commit
7d871edd4e
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue