@@ -62,7 +62,7 @@ class Decimal implements JsonSerializable, Stringable
6262
6363 /**
6464 * @param object|string|float|int $value
65- * @param int|null $scale
65+ * @param int|null $scale Leave empty to auto-detect.
6666 */
6767 public function __construct (object |string |float |int $ value , ?int $ scale = null )
6868 {
@@ -143,7 +143,7 @@ protected function normalizeValue(string $value): string
143143 * it.
144144 *
145145 * @param object|string|float|int $value
146- * @param int|null $scale
146+ * @param int|null $scale Leave empty to auto-detect.
147147 *
148148 * @return static
149149 */
@@ -247,7 +247,7 @@ public function compareTo(self|string|float|int $value): int
247247 * Add $value to this Decimal and return the sum as a new Decimal.
248248 *
249249 * @param static|string|float|int $value
250- * @param int|null $scale
250+ * @param int|null $scale Leave empty to auto-detect.
251251 *
252252 * @return static
253253 */
@@ -281,7 +281,7 @@ protected function resultScale(self $a, self $b, ?int $scale = null): int
281281 * Decimal.
282282 *
283283 * @param static|string|float|int $value
284- * @param int|null $scale
284+ * @param int|null $scale Leave empty to auto-detect.
285285 *
286286 * @return static
287287 */
@@ -389,7 +389,7 @@ public function isPositive(): bool
389389 * Multiply this Decimal by $value and return the product as a new Decimal.
390390 *
391391 * @param static|string|float|int $value
392- * @param int|null $scale
392+ * @param int|null $scale Leave empty to auto-detect.
393393 *
394394 * @return static
395395 */
@@ -427,7 +427,7 @@ public function divide(self|string|int|float $value, int $scale): static
427427 * This method is equivalent to the ** operator.
428428 *
429429 * @param static|string|int $exponent
430- * @param int|null $scale
430+ * @param int|null $scale Leave empty to use current.
431431 *
432432 * @return static
433433 */
@@ -443,7 +443,7 @@ public function pow(self|string|int $exponent, ?int $scale = null): static
443443 /**
444444 * Returns the square root of this decimal, with the same scale as this decimal.
445445 *
446- * @param int|null $scale
446+ * @param int|null $scale Leave empty to use current.
447447 *
448448 * @return static
449449 */
@@ -460,7 +460,7 @@ public function sqrt(?int $scale = null): static
460460 * This method is equivalent to the % operator.
461461 *
462462 * @param static|string|int $value
463- * @param int|null $scale
463+ * @param int|null $scale Leave empty to use current.
464464 *
465465 * @return static
466466 */
0 commit comments