From 4e7662a15e0f852adc0e4ebdab9dd19e073969dc Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Tue, 10 Aug 2004 23:40:27 +0000 Subject: [PATCH] Switched bcmath to the new doc style # also moved a note before the example and removed unneeded screen tags git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@165983 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/bc/functions/bcadd.xml | 22 ++++++++++------- reference/bc/functions/bccomp.xml | 34 ++++++++++---------------- reference/bc/functions/bcdiv.xml | 22 ++++++++++------- reference/bc/functions/bcmod.xml | 37 +++++++++++++---------------- reference/bc/functions/bcmul.xml | 35 ++++++++++++--------------- reference/bc/functions/bcpow.xml | 22 ++++++++++------- reference/bc/functions/bcpowmod.xml | 30 +++++++++++++---------- reference/bc/functions/bcscale.xml | 6 +++-- reference/bc/functions/bcsqrt.xml | 22 ++++++++++------- reference/bc/functions/bcsub.xml | 22 ++++++++++------- 10 files changed, 130 insertions(+), 122 deletions(-) diff --git a/reference/bc/functions/bcadd.xml b/reference/bc/functions/bcadd.xml index 4cf3bffb70..792fc95013 100644 --- a/reference/bc/functions/bcadd.xml +++ b/reference/bc/functions/bcadd.xml @@ -1,5 +1,5 @@ - + @@ -21,10 +21,12 @@ used to set the number of digits after the decimal place in the result. - - - <function>bcadd</function> example - + + + &reftitle.examples; + + <function>bcadd</function> example + ]]> - - - + + + + + &reftitle.seealso; - See also bcsub. + bcsub. diff --git a/reference/bc/functions/bccomp.xml b/reference/bc/functions/bccomp.xml index 1b417f9f72..d77031b6ac 100644 --- a/reference/bc/functions/bccomp.xml +++ b/reference/bc/functions/bccomp.xml @@ -1,5 +1,5 @@ - + @@ -26,31 +26,23 @@ is less than the right_operand the return value is -1. - - - <function>bccomp</function> example - + + + &reftitle.examples; + + <function>bccomp</function> example + ]]> - - - The above example will output: - - - - - - + + diff --git a/reference/bc/functions/bcdiv.xml b/reference/bc/functions/bcdiv.xml index 53694eb546..acbeb5e261 100644 --- a/reference/bc/functions/bcdiv.xml +++ b/reference/bc/functions/bcdiv.xml @@ -1,5 +1,5 @@ - + @@ -20,10 +20,12 @@ optional scale sets the number of digits after the decimal place in the result. - - - <function>bcdiv</function> example - + + + &reftitle.examples; + + <function>bcdiv</function> example + ]]> - - - + + + + + &reftitle.seealso; - See also bcmul. + bcmul. diff --git a/reference/bc/functions/bcmod.xml b/reference/bc/functions/bcmod.xml index 7b1d6af1bd..432dcabffb 100644 --- a/reference/bc/functions/bcmod.xml +++ b/reference/bc/functions/bcmod.xml @@ -1,5 +1,5 @@ - + @@ -19,30 +19,25 @@ Get the modulus of the left_operand using modulus. - - - <function>bcmod</function> example - + + + &reftitle.examples; + + <function>bcmod</function> example + ]]> - - - The above example will output: - - - - - - + + + + + &reftitle.seealso; - See also bcdiv. + bcdiv. @@ -66,4 +61,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file diff --git a/reference/bc/functions/bcmul.xml b/reference/bc/functions/bcmul.xml index f1afe7da45..2bac11f6dc 100644 --- a/reference/bc/functions/bcmul.xml +++ b/reference/bc/functions/bcmul.xml @@ -1,5 +1,5 @@ - + @@ -20,30 +20,25 @@ optional scale sets the number of digits after the decimal place in the result. - - - <function>bcmul</function> example - + + + &reftitle.examples; + + <function>bcmul</function> example + ]]> - - - The above example will output: - - - - - - + + + + + &reftitle.seealso; - See also bcdiv. + bcdiv. diff --git a/reference/bc/functions/bcpow.xml b/reference/bc/functions/bcpow.xml index b15793e5a7..a2864573d1 100644 --- a/reference/bc/functions/bcpow.xml +++ b/reference/bc/functions/bcpow.xml @@ -1,5 +1,5 @@ - + @@ -22,10 +22,12 @@ scale can be used to set the number of digits after the decimal place in the result. - - - <function>bcpow</function> example - + + + &reftitle.examples; + + <function>bcpow</function> example + ]]> - - - + + + + + &reftitle.seealso; - See also bcpowmod, and + bcpowmod&listendand; bcsqrt. diff --git a/reference/bc/functions/bcpowmod.xml b/reference/bc/functions/bcpowmod.xml index 991224d709..b1d6317a72 100644 --- a/reference/bc/functions/bcpowmod.xml +++ b/reference/bc/functions/bcpowmod.xml @@ -1,5 +1,5 @@ - + bcpowmod @@ -16,13 +16,23 @@ stringmodulus intscale - + Use the fast-exponentiation method to raise x to the power y with respect to the modulus modulus. The optional scale can be used to set the number of digits after the decimal place in the result. - + + + + Because this method uses the modulus operation, non-natural numbers + may give unexpected results. A natural number is any positive + non-zero integer. + + + + + &reftitle.examples; The following two statements are functionally identical. The bcpowmod version however, executes in @@ -42,17 +52,11 @@ $b = bcmod(bcpow($x, $y), $mod); + + + &reftitle.seealso; - - - Because this method uses the modulus operation, non-natural numbers - may give unexpected results. A natural number is any positive - non-zero integer. - - - - - See also bcpow, and + bcpow&listendand; bcmod. diff --git a/reference/bc/functions/bcscale.xml b/reference/bc/functions/bcscale.xml index 4136f86aed..0ad9f72927 100644 --- a/reference/bc/functions/bcscale.xml +++ b/reference/bc/functions/bcscale.xml @@ -1,5 +1,5 @@ - + @@ -19,7 +19,9 @@ bc math functions that do not explicitly specify a scale parameter. &return.success; - + + + &reftitle.examples; <function>bcscale</function> example diff --git a/reference/bc/functions/bcsqrt.xml b/reference/bc/functions/bcsqrt.xml index 9575066e2e..aeca7a38b4 100644 --- a/reference/bc/functions/bcsqrt.xml +++ b/reference/bc/functions/bcsqrt.xml @@ -1,5 +1,5 @@ - + @@ -20,10 +20,12 @@ The optional scale parameter sets the number of digits after the decimal place in the result. - - - <function>bcsqrt</function> example - + + + &reftitle.examples; + + <function>bcsqrt</function> example + ]]> - - - + + + + + &reftitle.seealso; - See also bcpow. + bcpow. diff --git a/reference/bc/functions/bcsub.xml b/reference/bc/functions/bcsub.xml index 9d4e22c614..de71ec2bed 100644 --- a/reference/bc/functions/bcsub.xml +++ b/reference/bc/functions/bcsub.xml @@ -1,5 +1,5 @@ - + @@ -23,10 +23,12 @@ used to set the number of digits after the decimal place in the result. - - - <function>bcsub</function> example - + + + &reftitle.examples; + + <function>bcsub</function> example + ]]> - - - + + + + + &reftitle.seealso; - See also bcadd. + bcadd.