@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | $roundedPartString = $wholePart; |
| 141 | 141 | $otherPart = str_split($decimalPart); |
| 142 | 142 | $baseLength = strlen($wholePart); |
| 143 | - $pos = ($absPlaces >= $baseLength) ? 0 : $baseLength + $places; |
|
| 143 | + $pos = ($absPlaces >= $baseLength) ? 0 : $baseLength+$places; |
|
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | return [ |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | bool $currentPart |
| 215 | 215 | ): array |
| 216 | 216 | { |
| 217 | - $digit = (int)$roundedPart[$pos] + $carry; |
|
| 217 | + $digit = (int)$roundedPart[$pos]+$carry; |
|
| 218 | 218 | |
| 219 | 219 | if ($carry == 0 && $digit == 5 && strlen($roundedPartString) > $pos+1) { |
| 220 | 220 | $remainder = substr($roundedPartString, $pos+1); |