@@ -45,36 +45,52 @@ function bcround(string $num, int $precision = 0, int $mode = PHP_ROUND_HALF_UP)
45
45
class Number {
46
46
public function __construct (string |int $ num ) {}
47
47
48
+ /** @tentative-return-type */
48
49
public function add (Number |string |int $ num , ?int $ scale = null ): Number {}
49
50
51
+ /** @tentative-return-type */
50
52
public function sub (Number |string |int $ num , ?int $ scale = null ): Number {}
51
53
54
+ /** @tentative-return-type */
52
55
public function mul (Number |string |int $ num , ?int $ scale = null ): Number {}
53
56
57
+ /** @tentative-return-type */
54
58
public function div (Number |string |int $ num , ?int $ scale = null ): Number {}
55
59
60
+ /** @tentative-return-type */
56
61
public function mod (Number |string |int $ num , ?int $ scale = null ): Number {}
57
62
63
+ /** @tentative-return-type */
58
64
public function powmod (Number |string |int $ exponent , Number |string |int $ modulus , ?int $ scale = null ): Number {}
59
65
66
+ /** @tentative-return-type */
60
67
public function pow (Number |string |int $ exponent , int $ minScale , ?int $ scale = null ): Number {}
61
68
69
+ /** @tentative-return-type */
62
70
public function sqrt (?int $ scale = null ): Number {}
63
71
72
+ /** @tentative-return-type */
64
73
public function eq (Number |string |int $ num , ?int $ scale = null ): bool {}
65
74
75
+ /** @tentative-return-type */
66
76
public function gt (Number |string |int $ num , ?int $ scale = null ): bool {}
67
77
78
+ /** @tentative-return-type */
68
79
public function gte (Number |string |int $ num , ?int $ scale = null ): bool {}
69
80
81
+ /** @tentative-return-type */
70
82
public function lt (Number |string |int $ num , ?int $ scale = null ): bool {}
71
83
84
+ /** @tentative-return-type */
72
85
public function lte (Number |string |int $ num , ?int $ scale = null ): bool {}
73
86
87
+ /** @tentative-return-type */
74
88
public function floor (): Number {}
75
89
90
+ /** @tentative-return-type */
76
91
public function ceil (): Number {}
77
92
93
+ /** @tentative-return-type */
78
94
public function round (int $ precision = 0 , int $ mode = PHP_ROUND_HALF_UP ): Number {}
79
95
}
80
96
}
0 commit comments