SignificantDigitsNumberRounder SignificantDigitsNumberRounder SignificantDigitsNumberRounder SignificantDigitsNumberRounder SignificantDigitsNumberRounder Class

Definition

Rounds numbers to a specified number of significant digits.

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

Constructors

SignificantDigitsNumberRounder() SignificantDigitsNumberRounder() SignificantDigitsNumberRounder() SignificantDigitsNumberRounder() SignificantDigitsNumberRounder()

Creates a SignificantDigitsNumberRounder object.

This constructor initializes RoundingAlgorithm to a default value of RoundingAlgorithm.**RoundHalfUp**, and SignificantDigits to 0.

Properties

RoundingAlgorithm RoundingAlgorithm RoundingAlgorithm RoundingAlgorithm RoundingAlgorithm

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

SignificantDigits SignificantDigits SignificantDigits SignificantDigits SignificantDigits

Gets or sets the number of significant digits this SignificantDigitsNumberRounder object uses for rounding.

Methods

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

Rounds a Double number to the specified number of significant digits.

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

Rounds an Int32 number to the specified number of significant digits.

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

Rounds an Int64 number to the specified number of significant digits.

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

Rounds a Single number to the specified number of significant digits.

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

Rounds a UInt32 number to the specified number of significant digits.

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

Rounds a UInt64 number to the specified number of significant digits.

See Also