Method TruncateToPrecision
| Improve this Doc View SourceTruncateToPrecision(BigDecimal, Int32)
Truncates the number to the given precision by removing any extra least significant digits.
Declaration
public static BigDecimal TruncateToPrecision(BigDecimal value, int precision)
Parameters
Type | Name | Description |
---|---|---|
BigDecimal | value | |
Int32 | precision |
Returns
Type | Description |
---|---|
BigDecimal |