File: bc.xml

package info (click to toggle)
phpdoc 20020310-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 35,272 kB
  • ctags: 354
  • sloc: xml: 799,767; php: 1,395; cpp: 500; makefile: 200; sh: 140; awk: 51
file content (284 lines) | stat: -rw-r--r-- 10,174 bytes parent folder | download
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.22 Maintainer: goba Status: ready -->
<!-- CREDITS: zvaranka,gerzson -->

 <reference id="ref.bc">
  <title>BCMath tetszleges pontossg matematikai fggvnyek</title>
  <titleabbrev>BCMath</titleabbrev>

  <partintro>
   <para>
    Ha tetszleges pontossg matematikai mveleteket szeretnl
    vgezni, a PHP a Binary Calculator Mathematics (BCMath)
    fggvnyeket knlja erre a clra. Ezek a fggvnyek
    tetszleges mretben s pontossggal tudnak szmokat
    brzolni karaktersorozatok felhasznlsval.
   </para>
   <para>
    PHP 4-ben ezek a fggvnyek csak akkor rhetek el, ha a PHP-t a 
    <link linkend="install.configure.enable-bcmath"><option role="configure">--enable-bcmath</option></link>
    belltssal lett fordtva.
    PHP 3-ban ezek a fggvnyek csak akkor rhetek el, ha a PHP-t NEM a 
    <link linkend="install.configure.enable-bcmath"><option role="configure">--disable-bcmath</option></link>
    belltssal lett fordtva.
   </para>
   <note>
    <para>
     Licensz krdsek miatt a BCMATH knyvtr a standard PHP
     csomagtl klnll elemknt tlthet le.
     Egy tar-gzippelt verzi beszerezhet a 
     <ulink url="&url.bcmath;">&url.bcmath;</ulink> cmen. Olvasd el a
     <filename>README.BCMATH</filename> fjlt a PHP csomagodban
     tovbbi informcikrt.
    </para>
   </note>
  </partintro>

  <refentry id="function.bcadd">
   <refnamediv>
    <refname>bcadd</refname>
    <refpurpose>sszead kt tetszleges pontossg szmot</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Lers</title>
     <methodsynopsis>
      <type>string</type><methodname>bcadd</methodname>
      <methodparam><type>string</type><parameter>left_operand</parameter></methodparam>
      <methodparam><type>string</type><parameter>right_operand</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam>
     </methodsynopsis>
    <para>
     Hozzadja a <parameter>left_operand</parameter>-ot a
     <parameter>right_operand</parameter>-hoz, s visszatr az sszeget
     tartalmaz stringgel. Az elhagyhat <parameter>scale</parameter> paramter
     hatrozza meg az eredmnyben a tizedes pont utni szmjegyek szmt.
    </para>
    <para>
     Lsd mg: <function>bcsub</function>!
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.bccomp">
   <refnamediv>
    <refname>bccomp</refname>
    <refpurpose>sszehasonlt kt tetszleges pontossg szmot</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Lers</title>
     <methodsynopsis>
      <type>int</type><methodname>bccomp</methodname>
      <methodparam><type>string</type><parameter>left_operand</parameter></methodparam>
      <methodparam><type>string</type><parameter>right_operand</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam>
     </methodsynopsis>
    <para>
     sszehasonltja a <parameter>left_operand</parameter>-ot a
     <parameter>right_operand</parameter>-al, s az eredmnyt egszknt
     visszaadja. Az elhagyhat <parameter>scale</parameter> paramter
     belltja a tizedes pont utni szmjegyek szmt, amely
     felhasznlsra kerl az sszehasonltsban. A visszatrsi rtk
     0, ha a kt operandus egyenl. Ha a <parameter>left_operand</parameter>
     nagyobb a <parameter>right_operand</parameter>-nl, az eredmny
     +1, de ha a <parameter>left_operand</parameter> kisebb nla, az eredmny -1.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.bcdiv">
   <refnamediv>
    <refname>bcdiv</refname>
    <refpurpose>Eloszt kt tetszleges pontossg szmot</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Lers</title>
     <methodsynopsis>
      <type>string</type><methodname>bcdiv</methodname>
      <methodparam><type>string</type><parameter>left_operand</parameter></methodparam>
      <methodparam><type>string</type><parameter>right_operand</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam>
     </methodsynopsis>
    <para>
     Elosztja a <parameter>left_operand</parameter>-ot a
     <parameter>right_operand</parameter>-al, s visszaadja az eredmnyt.
     Az elhagyhat <parameter>scale</parameter> paramter belltja
     az eredmnyben a tizedespont utni szmjegyek szmt.
    </para>
    <para>
     Lsd mg: <function>bcmul</function>!
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.bcmod">
   <refnamediv>
    <refname>bcmod</refname>
    <refpurpose>
     Kiszmtja kt tetszleges pontossg szm modulust
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Lers</title>
     <methodsynopsis>
      <type>string</type><methodname>bcmod</methodname>
      <methodparam><type>string</type><parameter>left_operand</parameter></methodparam>
      <methodparam><type>string</type><parameter>modulus</parameter></methodparam>
     </methodsynopsis>
    <para>
     Kiszmtja a <parameter>left_operand</parameter>-nak a 
     <parameter>modulus</parameter>-sal trtn oszts utni maradkt.
    </para>
    <para>
     Lsd mg: <function>bcdiv</function>!
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.bcmul">
   <refnamediv>
    <refname>bcmul</refname>
    <refpurpose>sszeszoroz kt tetszleges pontossg szmot</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Lers</title>
     <methodsynopsis>
      <type>string</type><methodname>bcmul</methodname>
      <methodparam><type>string</type><parameter>left_operand</parameter></methodparam>
      <methodparam><type>string</type><parameter>right_operand</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam>
     </methodsynopsis>
    <para>
     sszeszorozza a <parameter>left_operand</parameter>-ot a
     <parameter>right_operand</parameter>-dal, s visszaadja az eredmnyt. Az
     elhagyhat <parameter>scale</parameter> paramter hatrozza meg az 
     eredmnyben a tizedespont utni szmjegyek szmt.
    </para>
    <para>
     Lsd mg: <function>bcdiv</function>!
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.bcpow">
   <refnamediv>
    <refname>bcpow</refname>
    <refpurpose>
     Egy tetszleges pontossg szmot egy msik hatvnyra emel
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Lers</title>
     <methodsynopsis>
      <type>string</type><methodname>bcpow</methodname>
      <methodparam><type>string</type><parameter>x</parameter></methodparam>
      <methodparam><type>string</type><parameter>y</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam>
     </methodsynopsis>
    <para>
     Kiszmtja <parameter>x</parameter> szm
     <parameter>y</parameter>. hatvnyt. Az elhagyhat
     <parameter>scale</parameter> paramter belltja az eredmnyben
     a tizedes pont utni szmjegyek szmt.
    </para>
    <para>
     Lsd mg: <function>bcsqrt</function>!
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.bcscale">
   <refnamediv>
    <refname>bcscale</refname>
    <refpurpose>
     Belltja az alaprtelmezett sklzsi rtket az sszes BCMath matematikai fggvny rszre
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Lers</title>
     <methodsynopsis>
      <type>string</type><methodname>bcscale</methodname>
      <methodparam><type>int</type><parameter>scale</parameter></methodparam>
     </methodsynopsis>
    <para>
     Ez a fggvny belltja a sklzsi rtkt minden bc matematikai
     fggvny rszre, gy nem kell mindig explicit mdon megadni
     a <parameter>scale</parameter> paramtert, csak ha szksges.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.bcsqrt">
   <refnamediv>
    <refname>bcsqrt</refname>
    <refpurpose>
     Kiszmtja egy tetszleges pontossg szm ngyzetgykt
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Lers</title>
     <methodsynopsis>
      <type>string</type><methodname>bcsqrt</methodname>
      <methodparam><type>string</type><parameter>operand</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam>
     </methodsynopsis>
    <para>
     Visszaadja az <parameter>operand</parameter> ngyzetgykt.
     Az elhagyhat <parameter>scale</parameter> paramter belltja
     az eredmnyben a tizedes pont utni szmjegyek szmt.
    </para>
    <para>
     Lsd mg: <function>bcpow</function>!
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.bcsub">
   <refnamediv>
    <refname>bcsub</refname>
    <refpurpose>
     Kivon egy tetszleges pontossg szmot egy msikbl
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Lers</title>
     <methodsynopsis>
      <type>string</type><methodname>bcsub</methodname>
      <methodparam><type>string</type><parameter>left_operand</parameter></methodparam>
      <methodparam><type>string</type><parameter>right_operand</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam>
     </methodsynopsis>
    <para>
     Kivonja a <parameter>right_operand</parameter>-ot
     a <parameter>left_operand</parameter>-bl, s visszaadja az eredmnyt
     tartalmaz string-et. Az elhagyhat <parameter>scale</parameter>
     paramter belltja az eredmnyben a tizedes pont utni szmjegyek szmt.
    </para>
    <para>
     Lsd mg: <function>bcadd</function>!
    </para>
   </refsect1>
  </refentry>

 </reference>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->