Windows Dev Center

SignificantDigitsNumberRounder class

Rounds numbers to a specified number of significant digits.

Syntax


var significantDigitsNumberRounder = new Windows.Globalization.NumberFormatting.SignificantDigitsNumberRounder();

Members

The SignificantDigitsNumberRounder class has these types of members:

Constructors

The SignificantDigitsNumberRounder class has these constructors.

ConstructorDescription
SignificantDigitsNumberRounder Creates a SignificantDigitsNumberRounder object.

 

Methods

The SignificantDigitsNumberRounder 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 number of significant digits.
RoundInt32 Rounds an Int32 number to the specified number of significant digits.
RoundInt64 Rounds an Int64 number to the specified number of significant digits.
RoundSingle Rounds a Single number to the specified number of significant digits.
RoundUInt32 Rounds a UInt32 number to the specified number of significant digits.
RoundUInt64 Rounds a UInt64 number to the specified number of significant digits.

 

Properties

The SignificantDigitsNumberRounder class has these properties.

PropertyAccess typeDescription

RoundingAlgorithm

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

SignificantDigits

Read/writeGets or sets the number of significant digits this SignificantDigitsNumberRounder object uses for rounding.

 

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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

Attributes

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

See also

Object
INumberRounder

 

 

Show:
© 2015 Microsoft