Companion object for TolerantNumerics that enables its members to be imported as an alternative to
mixing them in.
- Companion:
- class
- Source:
- TolerantNumerics.scala
Value members
Inherited methods
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.
- Value parameters:
- tolerance
the tolerance with which the returned
Equalitywill compareBytes.
- Returns:
an
Equalitythat comparesBytes using the passed tolerance.- Inherited from:
- TolerantNumerics
- Source:
- TolerantNumerics.scala
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.
- Value parameters:
- tolerance
the tolerance with which the returned
Equalitywill compareDoubles.
- Returns:
an
Equalitythat comparesDoubles using the passed tolerance.- Inherited from:
- TolerantNumerics
- Source:
- TolerantNumerics.scala
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.
- Value parameters:
- tolerance
the tolerance with which the returned
Equalitywill compareNumerics.
- Returns:
an
Equivalencethat comparesNumerics using the passed tolerance.- Inherited from:
- TolerantNumerics
- Source:
- TolerantNumerics.scala
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.
- Value parameters:
- tolerance
the tolerance with which the returned
Equalitywill compareFloats.
- Returns:
an
Equalitythat comparesFloats using the passed tolerance.- Inherited from:
- TolerantNumerics
- Source:
- TolerantNumerics.scala
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.
- Value parameters:
- tolerance
the tolerance with which the returned
Equalitywill compareInts.
- Returns:
an
Equalitythat comparesInts using the passed tolerance.- Inherited from:
- TolerantNumerics
- Source:
- TolerantNumerics.scala
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.
- Value parameters:
- tolerance
the tolerance with which the returned
Equalitywill compareLongs.
- Returns:
an
Equalitythat comparesLongs using the passed tolerance.- Inherited from:
- TolerantNumerics
- Source:
- TolerantNumerics.scala
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.
- Value parameters:
- tolerance
the tolerance with which the returned
Equalitywill compareShorts.
- Returns:
an
Equalitythat comparesShorts using the passed tolerance.- Inherited from:
- TolerantNumerics
- Source:
- TolerantNumerics.scala