다음을 통해 공유


DecimalFormatter 클래스

정의

10진수의 서식을 지정하고 구문 분석합니다.

public ref class DecimalFormatter sealed : INumberFormatter, INumberFormatter2, INumberFormatterOptions, INumberParser, INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Globalization.NumberFormatting.IDecimalFormatterFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DecimalFormatter final : INumberFormatter, INumberFormatter2, INumberFormatterOptions, INumberParser, INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Globalization.NumberFormatting.IDecimalFormatterFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class DecimalFormatter final : INumberFormatter, INumberFormatter2, INumberFormatterOptions, INumberParser, INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Globalization.NumberFormatting.IDecimalFormatterFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DecimalFormatter : INumberFormatter, INumberFormatter2, INumberFormatterOptions, INumberParser, INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Globalization.NumberFormatting.IDecimalFormatterFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class DecimalFormatter : INumberFormatter, INumberFormatter2, INumberFormatterOptions, INumberParser, INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption
function DecimalFormatter(languages, geographicRegion)
Public NotInheritable Class DecimalFormatter
Implements INumberFormatter, INumberFormatter2, INumberFormatterOptions, INumberParser, INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption
상속
Object Platform::Object IInspectable DecimalFormatter
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

설명

앱이 이 클래스에 사용된 언어 태그를 모든 국가 언어 지원 함수에 전달하는 경우 먼저 ResolveLocaleName을 호출하여 태그를 변환해야 합니다.

생성자

DecimalFormatter()

DecimalFormatter 개체를 만들고 기본값으로 초기화합니다.

DecimalFormatter(IIterable<String>, String)

언어 목록 및 지리적 지역에 의해 초기화된 DecimalFormatter 개체를 만듭니다.

속성

FractionDigits

숫자의 소수 부분에 대해 표시할 최소 자릿수를 가져오거나 설정합니다.

GeographicRegion

10진수의 서식을 지정하고 구문 분석할 때 사용되는 지역을 가져옵니다.

IntegerDigits

숫자의 정수 부분에 대해 표시할 최소 자릿수를 가져오거나 설정합니다.

IsDecimalPointAlwaysDisplayed

숫자의 소수점이 항상 표시되어야 하는지 여부를 가져오거나 설정합니다.

IsGrouped

숫자의 정수 부분을 그룹화할지 여부를 가져오거나 설정합니다.

IsZeroSigned

-0의 서식을 "-0" 또는 "0"으로 지정할지 여부를 가져오거나 설정합니다.

Languages

10진수의 서식을 지정하고 구문 분석할 때 사용되는 언어 식별자의 우선 순위 목록을 가져옵니다.

NumberRounder

숫자 서식을 지정할 때 사용할 현재 반올림 전략을 가져오거나 설정합니다.

NumeralSystem

소수 자릿수의 서식을 지정하고 구문 분석하는 데 사용되는 번호 매기기 시스템을 가져오거나 설정합니다.

ResolvedGeographicRegion

소수 값의 서식을 지정하거나 구문 분석하는 데 가장 최근에 사용된 지리적 지역을 가져옵니다.

ResolvedLanguage

소수 값의 서식을 지정하거나 구문 분석하는 데 가장 최근에 사용된 언어를 가져옵니다.

SignificantDigits

10진수의 서식을 지정할 때 현재 안쪽 여백을 유효 자릿수로 가져오거나 설정합니다.

메서드

Format(Double)

Double 숫자의 문자열 표현을 반환합니다.

Format(Int64)

Int64 숫자의 문자열 표현을 반환합니다.

Format(UInt64)

UInt64 숫자의 문자열 표현을 반환합니다.

FormatDouble(Double)

Double 숫자의 문자열 표현을 반환합니다.

FormatInt(Int64)

Int64 숫자의 문자열 표현을 반환합니다.

FormatUInt(UInt64)

UInt64 숫자의 문자열 표현을 반환합니다.

ParseDouble(String)

Double 숫자의 문자열 표현을 구문 분석하려고 시도합니다.

ParseInt(String)

정수의 문자열 표현을 구문 분석하려고 시도합니다.

ParseUInt(String)

부호 없는 정수의 문자열 표현을 구문 분석하려고 시도합니다.

적용 대상

추가 정보