FloatEqualityComparer
Class in Zigurous.Math
Declaration
public sealed class FloatEqualityComparer : IEqualityComparer<float>
Description
Compares the equality of float values using a specified amount of decimal digits to compare.
Properties
digits | The number of decimal digits to compare when determining equality. |
Constructors
FloatEqualityComparer | Creates a new FloatEqualityComparer with a default of 3 decimal digits to compare when determining equality. |
Methods
Equals | Checks the equality of two float values. |
GetHashCode | Returns a hash code for the float value. |