Method IFloatingPoint<BigDecimal>.Round
IFloatingPoint<BigDecimal>.Round(BigDecimal, int, MidpointRounding)
Rounds a value to a specified number of fractional digits using the specified rounding mode.
Declaration
static BigDecimal IFloatingPoint<BigDecimal>.Round(BigDecimal x, int digits, MidpointRounding mode)
Parameters
Type | Name | Description |
---|---|---|
BigDecimal | x | The value to round. |
int | digits | The number of fractional digits to which |
MidpointRounding | mode | The mode under which |
Returns
Type | Description |
---|---|
BigDecimal | The result of rounding |