Partager via


Conversions.ToString Method (Single, NumberFormatInfo)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Converts a Single value to a String value, using the specified number format.

Namespace:  Microsoft.VisualBasic.CompilerServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

Syntax

'Declaration
Public Shared Function ToString ( _
    Value As Single, _
    NumberFormat As NumberFormatInfo _
) As String
public static string ToString(
    float Value,
    NumberFormatInfo NumberFormat
)

Parameters

Return Value

Type: System.String
The String representation of the Single value.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.