Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / PdfNumber Class / ToString Method / ToString(Single,Int32) Method
The value to convert.
The count of digits after decimal point.

In This Topic
    ToString(Single,Int32) Method
    In This Topic
    Converts a float value to a string. Note that a separate method ToString(Double,Int32) exists for converting double values, separate methods are needed to avoid rounding errors that may occur when converting doubles to floats and vice versa.
    Syntax
    'Declaration
     
    Public Overloads Shared Function ToString( _
       ByVal value As System.Single, _
       ByVal decimalPlaces As System.Integer _
    ) As System.String
    public static System.string ToString( 
       System.float value,
       System.int decimalPlaces
    )

    Parameters

    value
    The value to convert.
    decimalPlaces
    The count of digits after decimal point.
    See Also