閱讀英文

共用方式為


INumberFormatter.Format 方法

定義

多載

Format(Double)

傳回 Double 值的字串表示。

Format(Int64)

傳回 Int64 值的字串表示。

Format(UInt64)

傳回 UInt64 值的字串表示。

Format(Double)

傳回 Double 值的字串表示。

[Windows.Foundation.Metadata.DefaultOverload]
[Windows.Foundation.Metadata.Overload("FormatDouble")]
public string Format(double value);

參數

value
Double

要格式化的 Double 值。

傳回

String

表示值的字串。

屬性

另請參閱

適用於

WinRT Build 26100 及其他版本
產品 版本
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

Format(Int64)

傳回 Int64 值的字串表示。

[Windows.Foundation.Metadata.Overload("FormatInt")]
public string Format(long value);

參數

value
Int64

要格式化的 Int64 值。

傳回

String

表示值的字串。

屬性

另請參閱

適用於

WinRT Build 26100 及其他版本
產品 版本
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

Format(UInt64)

傳回 UInt64 值的字串表示。

[Windows.Foundation.Metadata.Overload("FormatUInt")]
public string Format(ulong value);

參數

value
UInt64

要格式化的 UInt64 值。

傳回

String

表示值的字串。

屬性

另請參閱

適用於

WinRT Build 26100 及其他版本
產品 版本
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100