Method DivideExact
| Improve this Doc View SourceDivideExact(BigDecimal, BigDecimal)
Performs a division operation that results in an exact decimal answer (i.e. no repeating decimals).
Declaration
public static BigDecimal DivideExact(BigDecimal dividend, BigDecimal divisor)
Parameters
Type | Name | Description |
---|---|---|
BigDecimal | dividend | The dividend of the division operation. |
BigDecimal | divisor | The divisor of the division operation. |
Returns
Type | Description |
---|---|
BigDecimal |
Exceptions
Type | Condition |
---|---|
ArithmeticException | The result could not be represented exactly as a decimal value. |