Class Rounding
- Namespace
- Dynamicweb.Ecommerce.Prices
- Assembly
- Dynamicweb.Ecommerce.dll
Represents the methods for rounding of sums.
[Serializable]
public class Rounding
- Inheritance
-
Rounding
- Inherited Members
Constructors
Rounding()
Initializes a new instance of the Rounding class.
public Rounding()
Properties
Decimals
Gets or sets the decimals.
public int Decimals { get; set; }
Property Value
Id
Gets or sets the id.
public string Id { get; set; }
Property Value
Method
Gets or sets the method.
public int Method { get; set; }
Property Value
ModDecimalCorrection
Gets or sets the mod decimal correction.
public int ModDecimalCorrection { get; set; }
Property Value
ModDecimalPart
Gets or sets the mod decimal part.
public int ModDecimalPart { get; set; }
Property Value
ModIntegerCorrection
Gets or sets the mod integer correction.
public int ModIntegerCorrection { get; set; }
Property Value
ModIntegerPart
Gets or sets the mod integer part.
public int ModIntegerPart { get; set; }
Property Value
Name
Gets or sets the name.
public string Name { get; set; }
Property Value
Methods
Round(double)
Rounds the specified value. If Method = 0 return the value.
public double Round(double value)
Parameters
value
doubleThe value.
Returns
- double
The rounded value.