Debian Codegraph @

codelitephp/resources/cc/bcmath.php

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