ImageGear v26.5 - Updated
ImageGear.Formats.Pdf Assembly / ImageGear.Formats.PDF Namespace / ImGearPDF Class / DoubleToFixed Method
Double value to be converted to fixed.




In This Topic
    DoubleToFixed Method
    In This Topic
    Converts double value to a PDF fixed value and returns it.
    Syntax
    'Declaration
     
    Public Shared Function DoubleToFixed( _
       ByVal value As Double _
    ) As Integer
    'Usage
     
    Dim value As Double
    Dim value As Integer
     
    value = ImGearPDF.DoubleToFixed(value)
    public static int DoubleToFixed( 
       double value
    )
    public: static int DoubleToFixed( 
       double value
    ) 
    public:
    static int DoubleToFixed( 
       double value
    ) 

    Parameters

    value
    Double value to be converted to fixed.

    Return Value

    PDF fixed value.
    Remarks
    The PDF fixed value may have a value from -32767 to 32767. In the case of double value is out of bounds this method does not throw any exception. Instead of this the method will return ImGearPDFFixedValues.NEGATIVE_INFINITY or ImGearPDFFixedValues.POSITIVE_INFINITY accordingly.
    See Also