Click or drag to resize

FloatingPointComparison Class

Contains methods for comparing floating point numbers.
Inheritance Hierarchy
SystemObject
  AGI.FoundationFloatingPointComparison

Namespace:  AGI.Foundation
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public static class FloatingPointComparison

The FloatingPointComparison type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCubeRoot
Computes the real-valued cube root if a given number. The cube root of a negative value is the negative of the cube root of that value's magnitude.
Public methodStatic memberDivideRoundTripIsGreaterOrEqual
Divides a dividend by a divisor such that if the quotient is later multiplied by the divisor the result is greater than or equal to the dividend.
Public methodStatic memberDivideRoundTripIsLessOrEqual
Divides a dividend by a divisor such that if the quotient is later multiplied by the divisor the result is less than or equal to the dividend.
Public methodStatic memberEqualsSignificantDigits(Double, Double, Int32)
Compares two numbers up to the specified number of significant digits.
Public methodStatic memberEqualsSignificantDigits(Double, Double, Int32, Int32)
Compares two numbers up to the specified number of significant digits.
Public methodStatic memberEqualsSignificantDigitsOrAbsoluteError
Compares two numbers up to the specified number of significant digits or by their absolute error.
Public methodStatic memberGetVariableExponent
Returns the order N of the given variable of the form: var * 10^-(N+1) is less than 0.0
Top
See Also