Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IncrementNumberRounder.Increment | increment property

Applies to Windows and Windows Phone

Gets or sets the increment this IncrementNumberRounder object uses for rounding.

Syntax


var increment = incrementNumberRounder.increment;
incrementNumberRounder.increment = increment;

Property value

Type: Number [JavaScript] | System.Double [.NET] | float64 [C++]

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:

  1. Divide the input by the Increment.
  2. Round the result to an integer using the rounding strategy of RoundingAlgorithm.
  3. Multiply the result by the Increment.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Globalization.NumberFormatting
Windows::Globalization::NumberFormatting [C++]

Metadata

Windows.winmd

See also

IncrementNumberRounder

 

 

Show:
© 2014 Microsoft. All rights reserved.