IncrementNumberRounder.Increment Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the increment this IncrementNumberRounder object uses for rounding.
public:
property double Increment { double get(); void set(double value); };
double Increment();
void Increment(double value);
public double Increment { get; set; }
var double = incrementNumberRounder.increment;
incrementNumberRounder.increment = double;
Public Property Increment As Double
Property Value
Double
double
The increment used for rounding.
Remarks
This property can be one of the following:
- An integer greater than 0.
- A fraction of the form 1/n, where n is an integer between 2 and 10000000000, inclusive.
- 1.0e-11, 1.0e-12, 1.0e-13, 1.0e-14, 1.0e-15, 1.0e-16, 1.0e-17, 1.0e-18, 1.0e-19, or 1.0e-20.
This property is initialized to a default value of 1.
When rounding is performed, the result is produced in this manner:
- Divide the input by the Increment.
- Round the result to an integer using the rounding strategy of RoundingAlgorithm.
- Multiply the result by the Increment.