forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbcmath.php
165 lines (155 loc) · 4.51 KB
/
bcmath.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?php
/**
* Add two arbitrary precision numbers
* @link http://php.net/manual/en/function.bcadd.php
* @param string $left_operand <p>
* The left operand, as a string.
* </p>
* @param string $right_operand <p>
* The right operand, as a string.
* </p>
* @param int $scale [optional]
* @return string The sum of the two operands, as a string.
* @since 4.0
* @since 5.0
*/
function bcadd ($left_operand, $right_operand, $scale = null) {}
/**
* Subtract one arbitrary precision number from another
* @link http://php.net/manual/en/function.bcsub.php
* @param string $left_operand <p>
* The left operand, as a string.
* </p>
* @param string $right_operand <p>
* The right operand, as a string.
* </p>
* @param int $scale [optional]
* @return string The result of the subtraction, as a string.
* @since 4.0
* @since 5.0
*/
function bcsub ($left_operand, $right_operand, $scale = null) {}
/**
* Multiply two arbitrary precision numbers
* @link http://php.net/manual/en/function.bcmul.php
* @param string $left_operand <p>
* The left operand, as a string.
* </p>
* @param string $right_operand <p>
* The right operand, as a string.
* </p>
* @param int $scale [optional]
* @return string the result as a string.
* @since 4.0
* @since 5.0
*/
function bcmul ($left_operand, $right_operand, $scale = null) {}
/**
* Divide two arbitrary precision numbers
* @link http://php.net/manual/en/function.bcdiv.php
* @param string $left_operand <p>
* The left operand, as a string.
* </p>
* @param string $right_operand <p>
* The right operand, as a string.
* </p>
* @param int $scale [optional]
* @return string the result of the division as a string, or <b>NULL</b> if
* <i>right_operand</i> is 0.
* @since 4.0
* @since 5.0
*/
function bcdiv ($left_operand, $right_operand, $scale = null) {}
/**
* Get modulus of an arbitrary precision number
* @link http://php.net/manual/en/function.bcmod.php
* @param string $left_operand <p>
* The left operand, as a string.
* </p>
* @param string $modulus <p>
* The modulus, as a string.
* </p>
* @return string the modulus as a string, or <b>NULL</b> if
* <i>modulus</i> is 0.
* @since 4.0
* @since 5.0
*/
function bcmod ($left_operand, $modulus) {}
/**
* Raise an arbitrary precision number to another
* @link http://php.net/manual/en/function.bcpow.php
* @param string $left_operand <p>
* The left operand, as a string.
* </p>
* @param string $right_operand <p>
* The right operand, as a string.
* </p>
* @param int $scale [optional]
* @return string the result as a string.
* @since 4.0
* @since 5.0
*/
function bcpow ($left_operand, $right_operand, $scale = null) {}
/**
* Get the square root of an arbitrary precision number
* @link http://php.net/manual/en/function.bcsqrt.php
* @param string $operand <p>
* The operand, as a string.
* </p>
* @param int $scale [optional]
* @return string the square root as a string, or <b>NULL</b> if
* <i>operand</i> is negative.
* @since 4.0
* @since 5.0
*/
function bcsqrt ($operand, $scale = null) {}
/**
* Set default scale parameter for all bc math functions
* @link http://php.net/manual/en/function.bcscale.php
* @param int $scale <p>
* The scale factor.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
* @since 4.0
* @since 5.0
*/
function bcscale ($scale) {}
/**
* Compare two arbitrary precision numbers
* @link http://php.net/manual/en/function.bccomp.php
* @param string $left_operand <p>
* The left operand, as a string.
* </p>
* @param string $right_operand <p>
* The right operand, as a string.
* </p>
* @param int $scale [optional] <p>
* The optional <i>scale</i> parameter is used to set the
* number of digits after the decimal place which will be used in the
* comparison.
* </p>
* @return int 0 if the two operands are equal, 1 if the
* <i>left_operand</i> is larger than the
* <i>right_operand</i>, -1 otherwise.
* @since 4.0
* @since 5.0
*/
function bccomp ($left_operand, $right_operand, $scale = null) {}
/**
* Raise an arbitrary precision number to another, reduced by a specified modulus
* @link http://php.net/manual/en/function.bcpowmod.php
* @param string $left_operand <p>
* The left operand, as a string.
* </p>
* @param string $right_operand <p>
* The right operand, as a string.
* </p>
* @param string $modulus <p>
* The modulus, as a string.
* </p>
* @param int $scale [optional]
* @return string the result as a string, or <b>NULL</b> if <i>modulus</i>
* is 0.
* @since 5.0
*/
function bcpowmod ($left_operand, $right_operand, $modulus, $scale = null) {}