Nevron .NET Vision
Nevron Namespace / NMath Class / SafeSqrt Method
The number which square root to compute.


In This Topic
    SafeSqrt Method
    In This Topic
    Computes the square root of a value, returning 0 if the value is negative.
    Syntax
    'Declaration
     
    
    Public Shared Function SafeSqrt( _
       ByVal d As System.Double _
    ) As System.Double
    'Usage
     
    
    Dim d As System.Double
    Dim value As System.Double
     
    value = NMath.SafeSqrt(d)
    public static System.double SafeSqrt( 
       System.double d
    )

    Parameters

    d
    The number which square root to compute.

    Return Value

    The square root of d or 0 if d is negative.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also