CIRProcess.CIR2.AdjSqrt C# (CSharp) Method

AdjSqrt() private method

Checks if the value is negative and floors it to zero, instead of attempting a square root of negative numbers.
private AdjSqrt ( double x ) : double
x double The value to do the square root of.
return double
        private double AdjSqrt(double x)
        {
            if (x < 0) return 0;
            else
                return Math.Sqrt(x);
        }