|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<!-- $Revision$ --> |
| 3 | +<reference xml:id="class.bcmath-number" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> |
| 4 | + |
| 5 | + <title>The BcMath\Number class</title> |
| 6 | + <titleabbrev>BcMath\Number</titleabbrev> |
| 7 | + |
| 8 | + <partintro> |
| 9 | + <section xml:id="bcmath-number.intro"> |
| 10 | + &reftitle.intro; |
| 11 | + <para> |
| 12 | + A class for an arbitrary precision number. These objects support overloaded |
| 13 | + <link linkend="language.operators.arithmetic">arithmetic</link> and |
| 14 | + <link linkend="language.operators.comparison">comparison</link> operators. |
| 15 | + </para> |
| 16 | + |
| 17 | + <note> |
| 18 | + <simpara>This class is not affected by <parameter>bcmath.scale</parameter> in &php.ini;.</simpara> |
| 19 | + </note> |
| 20 | + |
| 21 | + <note> |
| 22 | + <simpara> |
| 23 | + For more information about calculations with operators, see the documentation |
| 24 | + for the methods that correspond to the operators. |
| 25 | + </simpara> |
| 26 | + </note> |
| 27 | + </section> |
| 28 | + |
| 29 | + <section xml:id="bcmath-number.synopsis"> |
| 30 | + &reftitle.classsynopsis; |
| 31 | + |
| 32 | + <classsynopsis class="class"> |
| 33 | + <ooclass> |
| 34 | + <modifier>final</modifier> |
| 35 | + <modifier>readonly</modifier> |
| 36 | + <classname>BcMath\Number</classname> |
| 37 | + </ooclass> |
| 38 | + |
| 39 | + <oointerface> |
| 40 | + <modifier>implements</modifier> |
| 41 | + <interfacename>Stringable</interfacename> |
| 42 | + </oointerface> |
| 43 | + |
| 44 | + <classsynopsisinfo role="comment">&Properties;</classsynopsisinfo> |
| 45 | + <fieldsynopsis> |
| 46 | + <modifier>public</modifier> |
| 47 | + <type>string</type> |
| 48 | + <varname linkend="bcmath-number.props.value">value</varname> |
| 49 | + </fieldsynopsis> |
| 50 | + <fieldsynopsis> |
| 51 | + <modifier>public</modifier> |
| 52 | + <type>int</type> |
| 53 | + <varname linkend="bcmath-number.props.scale">scale</varname> |
| 54 | + </fieldsynopsis> |
| 55 | + |
| 56 | + <classsynopsisinfo role="comment">&Methods;</classsynopsisinfo> |
| 57 | + <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.bcmath-number')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='BcMath\\Number'])"> |
| 58 | + <xi:fallback/> |
| 59 | + </xi:include> |
| 60 | + <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.bcmath-number')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='BcMath\\Number'])"> |
| 61 | + <xi:fallback/> |
| 62 | + </xi:include> |
| 63 | + </classsynopsis> |
| 64 | + </section> |
| 65 | + |
| 66 | + <section xml:id="bcmath-number.props"> |
| 67 | + &reftitle.properties; |
| 68 | + <variablelist> |
| 69 | + <varlistentry xml:id="bcmath-number.props.value"> |
| 70 | + <term><varname>value</varname></term> |
| 71 | + <listitem> |
| 72 | + <para> |
| 73 | + A string representation of an arbitrary precision number. |
| 74 | + </para> |
| 75 | + </listitem> |
| 76 | + </varlistentry> |
| 77 | + <varlistentry xml:id="bcmath-number.props.scale"> |
| 78 | + <term><varname>scale</varname></term> |
| 79 | + <listitem> |
| 80 | + <para> |
| 81 | + The scale value currently set on the object. |
| 82 | + </para> |
| 83 | + </listitem> |
| 84 | + </varlistentry> |
| 85 | + </variablelist> |
| 86 | + </section> |
| 87 | + |
| 88 | + </partintro> |
| 89 | + |
| 90 | + &reference.bc.bcmath.entities.number; |
| 91 | + |
| 92 | +</reference> |
| 93 | +<!-- Keep this comment at the end of the file |
| 94 | +Local variables: |
| 95 | +mode: sgml |
| 96 | +sgml-omittag:t |
| 97 | +sgml-shorttag:t |
| 98 | +sgml-minimize-attributes:nil |
| 99 | +sgml-always-quote-attributes:t |
| 100 | +sgml-indent-step:1 |
| 101 | +sgml-indent-data:t |
| 102 | +indent-tabs-mode:nil |
| 103 | +sgml-parent-document:nil |
| 104 | +sgml-default-dtd-file:"~/.phpdoc/manual.ced" |
| 105 | +sgml-exposed-tags:nil |
| 106 | +sgml-local-catalogs:nil |
| 107 | +sgml-local-ecat-files:nil |
| 108 | +End: |
| 109 | +vim600: syn=xml fen fdm=syntax fdl=2 si |
| 110 | +vim: et tw=78 syn=sgml |
| 111 | +vi: ts=1 sw=1 |
| 112 | +--> |
0 commit comments