CurrencyFormatter.Format Method

Definition

Overloads

Format(Double)

Returns a string representation of a Double currency value.

Format(Int64)

Returns a string representation of an Int64 currency value.

Format(UInt64)

Returns a string representation of a UInt64 currency value.

Format(Double)

Returns a string representation of a Double currency value.

public:
 virtual Platform::String ^ Format(double value) = Format;
/// [Windows.Foundation.Metadata.DefaultOverload]
/// [Windows.Foundation.Metadata.Overload("FormatDouble")]
winrt::hstring Format(double const& value);
[Windows.Foundation.Metadata.DefaultOverload]
[Windows.Foundation.Metadata.Overload("FormatDouble")]
public string Format(double value);
function format(value)
Public Function Format (value As Double) As String

Parameters

value
Double

double

The Double currency value to be formatted.

Returns

String

Platform::String

winrt::hstring

A string that represents the value.

Implements

M:Windows.Globalization.NumberFormatting.INumberFormatter.Format(System.Double) M:Windows.Globalization.NumberFormatting.INumberFormatter.Format(double)
Attributes

Remarks

See the remarks for CurrencyFormatter((String, IIterable(String), String)) for an explanation of how the currency code may be displayed when the currency symbol is ambiguous.

See also

Applies to

Format(Int64)

Returns a string representation of an Int64 currency value.

public:
 virtual Platform::String ^ Format(long long value) = Format;
/// [Windows.Foundation.Metadata.Overload("FormatInt")]
winrt::hstring Format(long const& value);
[Windows.Foundation.Metadata.Overload("FormatInt")]
public string Format(long value);
function format(value)
Public Function Format (value As Long) As String

Parameters

value
Int64

long long

long

The Int64 currency value to be formatted.

Returns

String

Platform::String

winrt::hstring

A string that represents the value.

Implements

M:Windows.Globalization.NumberFormatting.INumberFormatter.Format(System.Int64) M:Windows.Globalization.NumberFormatting.INumberFormatter.Format(long long) M:Windows.Globalization.NumberFormatting.INumberFormatter.Format(long)
Attributes

Remarks

See the remarks for CurrencyFormatter((String, IIterable(String), String)) for an explanation of how the currency code may be displayed when the currency symbol is ambiguous.

See also

Applies to

Format(UInt64)

Returns a string representation of a UInt64 currency value.

public:
 virtual Platform::String ^ Format(unsigned long long value) = Format;
/// [Windows.Foundation.Metadata.Overload("FormatUInt")]
winrt::hstring Format(uint64_t const& value);
[Windows.Foundation.Metadata.Overload("FormatUInt")]
public string Format(ulong value);
function format(value)
Public Function Format (value As ULong) As String

Parameters

value
UInt64

unsigned long long

uint64_t

The UInt64 currency value to be formatted.

Returns

String

Platform::String

winrt::hstring

A string that represents the value.

Implements

M:Windows.Globalization.NumberFormatting.INumberFormatter.Format(System.UInt64) M:Windows.Globalization.NumberFormatting.INumberFormatter.Format(unsigned long long) M:Windows.Globalization.NumberFormatting.INumberFormatter.Format(uint64_t)
Attributes

Remarks

See the remarks for CurrencyFormatter((String, IIterable(String), String)) for an explanation of how the currency code may be displayed when the currency symbol is ambiguous.

See also

Applies to