From a9419b8e71c77fe415078309d2800533a44a5f76 Mon Sep 17 00:00:00 2001 From: Egon Schmid Date: Wed, 2 Feb 2000 00:00:35 +0000 Subject: [PATCH] Some cosmetic changes. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@19088 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/bc.xml | 161 ++++++++++++++++++++++++++++------------------- 1 file changed, 98 insertions(+), 63 deletions(-) diff --git a/functions/bc.xml b/functions/bc.xml index c112e39ead..a25882fbf9 100644 --- a/functions/bc.xml +++ b/functions/bc.xml @@ -19,17 +19,20 @@ string bcadd string left operand string right operand - int scale + int + scale + - - Adds the left operand to the - right operand and returns the - sum in a string. The optional scale - parameter is used to set the number of digits after the decimal - place in the result. + Adds the left operand to the + right operand and returns the sum in a + string. The optional scale parameter is + used to set the number of digits after the decimal place in the + result. + - See also bcsub. + See also bcsub. + @@ -44,19 +47,22 @@ int bccomp string left operand string right operand - int scale + int + scale + - - Compares the left operand to the - right operand and returns the - result as an integer. The optional scale - parameter is used to set the number of digits after the decimal place - which will be used in the comparion. The return value is 0 if the - two operands are equal. If the left operand - is larger than the right operand the return - value is +1 and if the left operand is less than - the right operand the return value is -1. + Compares the left operand to the + right operand and returns the result as an + integer. The optional scale parameter is + used to set the number of digits after the decimal place which + will be used in the comparion. The return value is 0 if the two + operands are equal. If the left operand + is larger than the right operand the + return value is +1 and if the left operand + is less than the right operand the return + value is -1. + @@ -71,25 +77,28 @@ string bcdiv string left operand string right operand - int scale + int + scale + - - Divides the left operand by the - right operand and returns the result. The optional - scale sets the number of digits after the decimal - place in the result. - + Divides the left operand by the + right operand and returns the result. The + optional scale sets the number of digits + after the decimal place in the result. + - See also bcmul. - + See also bcmul. + bcmod - Get modulus of an arbitrary precision number. + + Get modulus of an arbitrary precision number. + Description @@ -99,10 +108,12 @@ string modulus - Get the modulus of the left operand using - modulus. + Get the modulus of the left operand using + modulus. + - See also bcdiv. + See also bcdiv. + @@ -117,23 +128,28 @@ string bcmul string left operand string right operand - int scale + int + scale + - Multiply the left operand by the - right operand and returns the result. The optional - scale sets the number of digits after the decimal - place in the result. - + Multiply the left operand by the + right operand and returns the result. The + optional scale sets the number of digits + after the decimal place in the result. + - See also bcdiv. + See also bcdiv. + bcpow - Raise an arbitrary precision number to another. + + Raise an arbitrary precision number to another. + Description @@ -141,21 +157,28 @@ string bcpow string x string y - int scale + int + scale + - Raise x to the power y. - The optional scale can be used to set the number of digits - after the decimal place in the result. + Raise x to the power + y. The optional + scale can be used to set the number of + digits after the decimal place in the result. + - See also bcsqrt. + See also bcsqrt. + bcscale - Set default scale parameter for all bc math functions. + + Set default scale parameter for all bc math functions. + Description @@ -164,15 +187,19 @@ int scale - This function sets the default scale parameter for all subsequent bc math functions - that do not explicitly specify a scale parameter. + This function sets the default scale parameter for all subsequent + bc math functions that do not explicitly specify a scale + parameter. + bcsqrt - Get the square root of an arbitray precision number. + + Get the square root of an arbitray precision number. + Description @@ -182,18 +209,22 @@ int scale - Return the square root of the operand. The - optional scale parameter sets the number of - digits after the decimal place in the result. + Return the square root of the operand. + The optional scale parameter sets the + number of digits after the decimal place in the result. + - See also bcpow. + See also bcpow. + bcsub - Subtract one arbitrary precision number from another. + + Subtract one arbitrary precision number from another. + Description @@ -201,19 +232,23 @@ string bcsub string left operand string right operand - int scale + int + scale + - - Subtracts the right operand from the - left operand and returns the - result in a string. The optional scale - parameter is used to set the number of digits after the decimal - place in the result. + Subtracts the right operand from the + left operand and returns the result in a + string. The optional scale parameter is + used to set the number of digits after the decimal place in the + result. + - See also bcadd. + See also bcadd. + +