@@ -62,7 +62,7 @@ class Decimal implements JsonSerializable, Stringable
62
62
63
63
/**
64
64
* @param object|string|float|int $value
65
- * @param int|null $scale
65
+ * @param int|null $scale Leave empty to auto-detect.
66
66
*/
67
67
public function __construct (object |string |float |int $ value , ?int $ scale = null )
68
68
{
@@ -143,7 +143,7 @@ protected function normalizeValue(string $value): string
143
143
* it.
144
144
*
145
145
* @param object|string|float|int $value
146
- * @param int|null $scale
146
+ * @param int|null $scale Leave empty to auto-detect.
147
147
*
148
148
* @return static
149
149
*/
@@ -247,7 +247,7 @@ public function compareTo(self|string|float|int $value): int
247
247
* Add $value to this Decimal and return the sum as a new Decimal.
248
248
*
249
249
* @param static|string|float|int $value
250
- * @param int|null $scale
250
+ * @param int|null $scale Leave empty to auto-detect.
251
251
*
252
252
* @return static
253
253
*/
@@ -281,7 +281,7 @@ protected function resultScale(self $a, self $b, ?int $scale = null): int
281
281
* Decimal.
282
282
*
283
283
* @param static|string|float|int $value
284
- * @param int|null $scale
284
+ * @param int|null $scale Leave empty to auto-detect.
285
285
*
286
286
* @return static
287
287
*/
@@ -389,7 +389,7 @@ public function isPositive(): bool
389
389
* Multiply this Decimal by $value and return the product as a new Decimal.
390
390
*
391
391
* @param static|string|float|int $value
392
- * @param int|null $scale
392
+ * @param int|null $scale Leave empty to auto-detect.
393
393
*
394
394
* @return static
395
395
*/
@@ -427,7 +427,7 @@ public function divide(self|string|int|float $value, int $scale): static
427
427
* This method is equivalent to the ** operator.
428
428
*
429
429
* @param static|string|int $exponent
430
- * @param int|null $scale
430
+ * @param int|null $scale Leave empty to use current.
431
431
*
432
432
* @return static
433
433
*/
@@ -443,7 +443,7 @@ public function pow(self|string|int $exponent, ?int $scale = null): static
443
443
/**
444
444
* Returns the square root of this decimal, with the same scale as this decimal.
445
445
*
446
- * @param int|null $scale
446
+ * @param int|null $scale Leave empty to use current.
447
447
*
448
448
* @return static
449
449
*/
@@ -460,7 +460,7 @@ public function sqrt(?int $scale = null): static
460
460
* This method is equivalent to the % operator.
461
461
*
462
462
* @param static|string|int $value
463
- * @param int|null $scale
463
+ * @param int|null $scale Leave empty to use current.
464
464
*
465
465
* @return static
466
466
*/
0 commit comments