Calculates the value of number1 divided by number2.
Usage
Client side: N
Server side: Y
Syntax
BigDecimal divide(number1, number2, precision)
Argument
number1
The first number to be calculated. The default value is 1. The data type is Number.
number2
The second number to be calculated. The default value is 1. The data type is Number.
precision
The number of digits to be retained after decimal point in the calculation results. The default value is -1, which means original calculation results are returned.
Note Nonnumeric strings in number1 and number2 are regarded as the default value 1.
Return
Returns the value of number1 divided by number2 with HALF_EVEN rounding.