IRoundingStrategy Interface
Definition
Rounds a raw monetary amount to a given number of fractional digits. Implementations encapsulate the rounding convention applied at operation boundaries - banker's rounding, away-from-zero, and so on.
public interface IRoundingStrategy
- Extension Methods
Methods
Round(decimal, int)
Rounds value to scale fractional digits.
decimal Round(decimal value, int scale)
Parameters
Returns
- decimal
The rounded amount.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |