Method Divide
| Improve this Doc View SourceDivide(BigDecimal, BigDecimal, Int32, RoundingMode)
Performs a division operation using the specified maximum extended precision.
Declaration
public static BigDecimal Divide(BigDecimal dividend, BigDecimal divisor, int maxExtendedPrecision, RoundingMode mode = RoundingMode.MidpointToEven)
Parameters
Type | Name | Description |
---|---|---|
BigDecimal | dividend | The dividend of the division operation. |
BigDecimal | divisor | The divisor of the division operation. |
Int32 | maxExtendedPrecision | If the result of the division does not fit into the precision of the dividend or divisor then this extended precision is used. |
RoundingMode | mode | The rounding mode to use. |
Returns
Type | Description |
---|---|
BigDecimal |