INumberFormatter INumberFormatter INumberFormatter INumberFormatter INumberFormatter Interface

Definition

An interface that returns a string representation of a provided value, using an overloaded Format method to format several data types.

public : interface INumberFormatter
struct winrt::Windows::Globalization::NumberFormatting::INumberFormatter
public interface INumberFormatter
Public Interface INumberFormatter
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

Format(Double) Format(Double) Format(Double) Format(Double) Format(Double)

Returns a string representation of a Double value.

public : Platform::String Format(double value)
winrt::hstring Format(double value) const;
public string Format(Double value)
Public Function Format(value As Double) As string
var string = iNumberFormatter.format(value);
Parameters
value
Double Double Double

The Double value to be formatted.

Returns
string string string

A string that represents the value.

See Also

Format(Int64) Format(Int64) Format(Int64) Format(Int64) Format(Int64)

Returns a string representation of an Int64 value.

public : Platform::String Format(long value)
winrt::hstring Format(long value) const;
public string Format(Int64 value)
Public Function Format(value As Int64) As string
var string = iNumberFormatter.format(value);
Parameters
value
Int64 Int64 Int64

The Int64 value to be formatted.

Returns
string string string

A string that represents the value.

See Also

Format(UInt64) Format(UInt64) Format(UInt64) Format(UInt64) Format(UInt64)

Returns a string representation of a UInt64 value.

public : Platform::String Format(unsigned __int64 value)
winrt::hstring Format(UInt64 value) const;
public string Format(UInt64 value)
Public Function Format(value As UInt64) As string
var string = iNumberFormatter.format(value);
Parameters
value
UInt64 UInt64 UInt64

The UInt64 value to be formatted.

Returns
string string string

A string that represents the value.

See Also