diff --git a/functions/bc.xml b/functions/bc.xml index 3560003979..eb5d2f02c9 100644 --- a/functions/bc.xml +++ b/functions/bc.xml @@ -1,5 +1,5 @@ - + BCMath Arbitrary Precision Mathematics Functions BC math @@ -33,16 +33,16 @@ string bcadd - string left operand - string right operand + string left_operand + string right_operand int scale - Adds the left operand to the - right operand and returns the sum in a + 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. @@ -63,23 +63,23 @@ int bccomp - string left operand - string right operand + string left_operand + string right_operand int scale - Compares the left operand to the - right operand and returns the result as an + 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 comparison. 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 + 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. @@ -95,16 +95,16 @@ string bcdiv - string left operand - string right operand + string left_operand + string right_operand int scale - Divides the left operand by the - right operand and returns the result. The + 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. @@ -126,12 +126,12 @@ string bcmod - string left operand + string left_operand string modulus - Get the modulus of the left operand using + Get the modulus of the left_operand using modulus. @@ -150,16 +150,16 @@ string bcmul - string left operand - string right operand + string left_operand + string right_operand int scale - Multiply the left operand by the - right operand and returns the result. The + 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. @@ -264,16 +264,16 @@ string bcsub - string left operand - string right operand + string left_operand + string right_operand int scale - Subtracts the right operand from the - left operand and returns the result in a + 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.