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 class

Applies to Windows and Windows Phone

Rounds numbers to a specified increment.

For example, this class can be used to round a number to the nearest 0.01.

Syntax

Public NotInheritable Class IncrementNumberRounder
    Implements INumberRounder

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06030000)]

Members

The IncrementNumberRounder class has these types of members:

Constructors

The IncrementNumberRounder class has these constructors.

ConstructorDescription
IncrementNumberRounder Creates an IncrementNumberRounder object.

 

Methods

The IncrementNumberRounder class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
RoundDouble Rounds a Double number to the specified increment.
RoundInt32 Rounds an Int32 number to the specified increment.
RoundInt64 Rounds an Int64 number to the specified increment.
RoundSingle Rounds a Single number to the specified increment.
RoundUInt32 Rounds a UInt32 number to the specified increment.
RoundUInt64 Rounds a UInt64 number to the specified increment.

 

Properties

The IncrementNumberRounder class has these properties.

PropertyAccess typeDescription

Increment

Read/writeGets or sets the increment this IncrementNumberRounder object uses for rounding.

RoundingAlgorithm

Read/writeGets or sets the rounding strategy value for this IncrementNumberRounder object.

 

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

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

Metadata

Windows.winmd

See also

Object
INumberRounder

 

 

Show:
© 2014 Microsoft