Smrf.NodeXL.ExcelTemplate.AutoFillResultsLegendControl.DoubleToString C# (CSharp) Method

DoubleToString() protected method

protected DoubleToString ( Double dDouble, Int32 iDecimalPlaces ) : String
dDouble Double
iDecimalPlaces System.Int32
return String
    DoubleToString
    (
        Double dDouble,
        Int32 iDecimalPlaces
    )
    {
        AssertValid();
        Debug.Assert(iDecimalPlaces >= 0);

        return ( dDouble.ToString( "f" + iDecimalPlaces.ToString() ) );
    }