Provides Equality and Equivalence instances for Numeric types that
compare for equality with a given tolerance.
Here's an example:
scala> import org.scalactic._ import org.scalactic._ scala> import TripleEquals._ import TripleEquals._ scala> 2.001 === 2.0 res0: Boolean = false scala> implicit val doubleEquality = TolerantNumerics.tolerantDoubleEquality(0.01) doubleEquality: org.scalactic.Equality[Double] = org.scalactic.TolerantNumerics$$anon1ドル@16c2bd13 scala> 2.001 === 2.0 res1: Boolean = true
Provides an Equality instance for Bytes that
compares for equality with the passed tolerance.
Provides an Equality instance for Bytes that
compares for equality with the passed tolerance.
the tolerance with which the returned Equality will compare Bytes.
an Equality that compares Bytes using the passed tolerance.
Provides an Equality instance for Doubles that
compares for equality with the passed tolerance.
Provides an Equality instance for Doubles that
compares for equality with the passed tolerance.
the tolerance with which the returned Equality will compare Doubles.
an Equality that compares Doubles using the passed tolerance.
Provides an Equivalence[N] instance for any type for which a Numeric[N] is available that
compares Ns for equality with the passed tolerance.
Provides an Equivalence[N] instance for any type for which a Numeric[N] is available that
compares Ns for equality with the passed tolerance.
the tolerance with which the returned Equality will compare Numerics.
an Equivalence that compares Numerics using the passed tolerance.
Provides an Equality instance for Floats that
compares for equality with the passed tolerance.
Provides an Equality instance for Floats that
compares for equality with the passed tolerance.
the tolerance with which the returned Equality will compare Floats.
an Equality that compares Floats using the passed tolerance.
Provides an Equality instance for Ints that
compares for equality with the passed tolerance.
Provides an Equality instance for Ints that
compares for equality with the passed tolerance.
the tolerance with which the returned Equality will compare Ints.
an Equality that compares Ints using the passed tolerance.
Provides an Equality instance for Longs that
compares for equality with the passed tolerance.
Provides an Equality instance for Longs that
compares for equality with the passed tolerance.
the tolerance with which the returned Equality will compare Longs.
an Equality that compares Longs using the passed tolerance.
Provides an Equality instance for Shorts that
compares for equality with the passed tolerance.
Provides an Equality instance for Shorts that
compares for equality with the passed tolerance.
the tolerance with which the returned Equality will compare Shorts.
an Equality that compares Shorts using the passed tolerance.