Click or drag to resize
Accord.NET (logo)

RationalStrictlyEquals Method

Indicates whether this instance and a specified Rational are strictly equal; that is, the two instances must have equal numerators and denominators.

Namespace:  Accord.Math
Assembly:  Accord (in Accord.dll) Version: 3.8.0
public bool StrictlyEquals(
	Rational r
Request Example View Source


Type: Accord.MathRational
Another Rational to compare to.

Return Value

Type: Boolean

Field Value

Type: Boolean
true if the current number and r have equal numerators and denominators; otherwise,

Field Value

Type: Boolean
The basic Equals implementation considers unsimplified fractions to be equal to their simplified forms; e.g. 2/4 = 1/2. This method considers those values to be different.
See Also