INumberFormatter2 INumberFormatter2 INumberFormatter2 INumberFormatter2 Interface

Definition

An interface that returns a string representation of a provided value, using distinct format methods to format several data types.

public : interface INumberFormatter2
public interface INumberFormatter2
Public Interface INumberFormatter2
// 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

FormatDouble(Double) FormatDouble(Double) FormatDouble(Double) FormatDouble(Double)

Returns a string representation of a Double value.

public : Platform::String FormatDouble(double value)
public string FormatDouble(Double value)
Public Function FormatDouble(value As Double) As string
var string = iNumberFormatter2.formatDouble(value);
Parameters
value
double Double Double Double

The Double value to be formatted.

Returns
Platform::String string string string

A string that represents the value.

FormatInt(Int64) FormatInt(Int64) FormatInt(Int64) FormatInt(Int64)

Returns a string representation of an Int64 value.

public : Platform::String FormatInt(long value)
public string FormatInt(Int64 value)
Public Function FormatInt(value As Int64) As string
var string = iNumberFormatter2.formatInt(value);
Parameters
value
long Int64 Int64 Int64

The Int64 value to be formatted.

Returns
Platform::String string string string

A string that represents the value.

FormatUInt(UInt64) FormatUInt(UInt64) FormatUInt(UInt64) FormatUInt(UInt64)

Returns a string representation of a UInt64 value.

public : Platform::String FormatUInt(unsigned __int64 value)
public string FormatUInt(UInt64 value)
Public Function FormatUInt(value As UInt64) As string
var string = iNumberFormatter2.formatuInt(value);
Parameters
value
unsigned __int64 UInt64 UInt64 UInt64

The UInt64 value to be formatted.

Returns
Platform::String string string string

A string that represents the value.