INumberFormatter2 INumberFormatter2 INumberFormatter2 INumberFormatter2 Interface

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

Syntax

Declaration

public interface INumberFormatter2public interface INumberFormatter2Public Interface INumberFormatter2public interface INumberFormatter2

Methods summary

Returns a string representation of a Double value.

Returns a string representation of an Int64 value.

Returns a string representation of a UInt64 value.

Methods

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

    Returns a string representation of a Double value.

    public string FormatDouble(Double value)public string FormatDouble(Double value)Public Function FormatDouble(value As Double) As stringpublic string FormatDouble(Double value)

    Parameters

    • value
      System.Double
      System.Double
      System.Double
      System.Double

      The Double value to be formatted.

    Returns

    • 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 string FormatInt(Int64 value)public string FormatInt(Int64 value)Public Function FormatInt(value As Int64) As stringpublic string FormatInt(Int64 value)

    Parameters

    • value
      System.Int64
      System.Int64
      System.Int64
      System.Int64

      The Int64 value to be formatted.

    Returns

    • 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 string FormatUInt(UInt64 value)public string FormatUInt(UInt64 value)Public Function FormatUInt(value As UInt64) As stringpublic string FormatUInt(UInt64 value)

    Parameters

    • value
      System.UInt64
      System.UInt64
      System.UInt64
      System.UInt64

      The UInt64 value to be formatted.

    Returns

    • string
      string
      string
      string

      A string that represents the value.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.GuidAttribute

Details

Assembly

Windows.Globalization.NumberFormatting.dll