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.

DecimalFormatter.SignificantDigits | significantDigits property

Applies to Windows and Windows Phone

Gets or sets the current padding to significant digits when a decimal number is formatted.

Syntax


var significantDigits = decimalFormatter.significantDigits;
decimalFormatter.significantDigits = significantDigits;

Property value

Type: Number [JavaScript] | System.Int32 [.NET] | int32 [C++]

The number of significant digits.

Remarks

Trailing zeros are added to the format until the given number of significant digits is exhausted. If there are more digits, this property does not cause them to be truncated.

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

DecimalFormatter

 

 

Show:
© 2014 Microsoft. All rights reserved.