Companion object to trait Tolerance
that facilitates the importing of Tolerance
members as
an alternative to mixing it in. One use case is to import Tolerance
members so you can use
them in the Scala interpreter:
$ scala -classpath scalactic.jar Welcome to Scala version 2.10.0 Type in expressions to have them evaluated. Type :help for more information. scala> import org.scalactic._ import org.scalactic._ scala> import Tolerance._ import Tolerance._ scala> 1.0 +- 0.1 res0: org.scalactic.TripleEqualsSupport.Spread[Double] = Spread(1.0,0.1)
- Companion:
- class
- Source:
- Tolerance.scala
Type members
Inherited classlikes
Wrapper class with a +-
method that, given a Numeric
argument, returns a Spread
.
Wrapper class with a +-
method that, given a Numeric
argument, returns a Spread
.
- Value parameters:
- tolerance
the tolerance with which to create (and return) a
Spread
- Inherited from:
- Tolerance
- Source:
- Tolerance.scala
Implicits
Inherited implicits
Implicitly converts an object of a Numeric
type to a PlusOrMinusWrapper
,
to enable a +-
method to be invoked on that object.
Implicitly converts an object of a Numeric
type to a PlusOrMinusWrapper
,
to enable a +-
method to be invoked on that object.
- Inherited from:
- Tolerance
- Source:
- Tolerance.scala