This document is archived and information here might be outdated. Recommended version. |
Increments a value according to the numbers format.
[Visual Basic .NET]
Public Function Increment ( _
ByVal Value As Double _
) As Double
[C#]
public double Increment (
double Value
);
[C++]
HRESULT Increment(
double Value
);
[C++] Parameters Value [in]
Value is a parameter of type double
The Increment method reacts differently depending on the number format object used and how that object is configured. A NumericFormat configured for a specific number of decimal places will increment to the last decimal place. For example, if two decimal places are specified, 22.533 would increment to 22.54; if the object is configured for two significant digits, 22.533 would increment to 24. For an AngleFormat, the input value is converted to the display format first then the same rules apply as for a NumericFormat.