IncrementNumberRounder IncrementNumberRounder IncrementNumberRounder IncrementNumberRounder IncrementNumberRounder Class

Definition

Rounds numbers to a specified increment.

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

public : sealed class IncrementNumberRounder : IIncrementNumberRounder, INumberRounder
struct winrt::Windows::Globalization::NumberFormatting::IncrementNumberRounder : IIncrementNumberRounder, INumberRounder
public sealed class IncrementNumberRounder : IIncrementNumberRounder, INumberRounder
Public NotInheritable Class IncrementNumberRounder Implements IIncrementNumberRounder, INumberRounder
var incrementNumberRounder = new incrementNumberRounder();
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

IncrementNumberRounder() IncrementNumberRounder() IncrementNumberRounder() IncrementNumberRounder() IncrementNumberRounder()

Creates an IncrementNumberRounder object.

This constructor initializes RoundingAlgorithm to a default value of RoundingAlgorithm.**RoundHalfUp**, and Increment to 1.

Properties

Increment Increment Increment Increment Increment

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

RoundingAlgorithm RoundingAlgorithm RoundingAlgorithm RoundingAlgorithm RoundingAlgorithm

Gets or sets the rounding strategy value for this IncrementNumberRounder object.

Methods

RoundDouble(Double) RoundDouble(Double) RoundDouble(Double) RoundDouble(Double) RoundDouble(Double)

Rounds a Double number to the specified increment.

RoundInt32(Int32) RoundInt32(Int32) RoundInt32(Int32) RoundInt32(Int32) RoundInt32(Int32)

Rounds an Int32 number to the specified increment.

RoundInt64(Int64) RoundInt64(Int64) RoundInt64(Int64) RoundInt64(Int64) RoundInt64(Int64)

Rounds an Int64 number to the specified increment.

RoundSingle(Single) RoundSingle(Single) RoundSingle(Single) RoundSingle(Single) RoundSingle(Single)

Rounds a Single number to the specified increment.

RoundUInt32(UInt32) RoundUInt32(UInt32) RoundUInt32(UInt32) RoundUInt32(UInt32) RoundUInt32(UInt32)

Rounds a UInt32 number to the specified increment.

RoundUInt64(UInt64) RoundUInt64(UInt64) RoundUInt64(UInt64) RoundUInt64(UInt64) RoundUInt64(UInt64)

Rounds a UInt64 number to the specified increment.

See Also