FloatingPointComparisonEqualsSignificantDigits Method (Double, Double, Int32) | 
 
            Compares two numbers up to the specified number of significant digits.
            
 
    Namespace: 
   AGI.Foundation
    Assembly:
   AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic static bool EqualsSignificantDigits(
	double x,
	double y,
	int significantDigits
)
Public Shared Function EqualsSignificantDigits ( 
	x As Double,
	y As Double,
	significantDigits As Integer
) As Boolean
public:
static bool EqualsSignificantDigits(
	double x, 
	double y, 
	int significantDigits
)
static member EqualsSignificantDigits : 
        x : float * 
        y : float * 
        significantDigits : int -> bool 
Parameters
- x
 - Type: SystemDouble
The first number to compare. - y
 - Type: SystemDouble
The second number to compare - significantDigits
 - Type: SystemInt32
The number of significant digits to consider in the comparison. 
Return Value
Type: 
Boolean if the nth significant digit of the two numbers differ by no more than 1
            and all preceding significant digits are equal; otherwise 
.
            
See Also