Table of Contents

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

int

Id

Gets or sets the id.

public string Id { get; set; }

Property Value

string

Method

Gets or sets the method.

public int Method { get; set; }

Property Value

int

ModDecimalCorrection

Gets or sets the mod decimal correction.

public int ModDecimalCorrection { get; set; }

Property Value

int

ModDecimalPart

Gets or sets the mod decimal part.

public int ModDecimalPart { get; set; }

Property Value

int

ModIntegerCorrection

Gets or sets the mod integer correction.

public int ModIntegerCorrection { get; set; }

Property Value

int

ModIntegerPart

Gets or sets the mod integer part.

public int ModIntegerPart { get; set; }

Property Value

int

Name

Gets or sets the name.

public string Name { get; set; }

Property Value

string

Methods

Round(double)

Rounds the specified value. If Method = 0 return the value.

public double Round(double value)

Parameters

value double

The value.

Returns

double

The rounded value.

To top