Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package scalactic
    Definition Classes
    org
  • trait Tolerance extends AnyRef

    Trait containing an implicit conversion that adds a +- method to Numeric types, which enables spreads to be expressed in terms of a pivot and tolerance.

    Trait containing an implicit conversion that adds a +- method to Numeric types, which enables spreads to be expressed in terms of a pivot and tolerance.

    For example, the TripleEquals trait (and its type-checking siblings TypeCheckedTripleEquals and ConversionCheckedTripleEquals) enable you to write:

    a === (1.0 +- 0.1)
    

    Definition Classes
    scalactic
  • PlusOrMinusWrapper
Scalactic is brought to you by:
c

org.scalactic.Tolerance

PlusOrMinusWrapper

final class PlusOrMinusWrapper[T] extends AnyRef

Wrapper class with a +- method that, given a Numeric argument, returns a Spread.

Source
Tolerance.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PlusOrMinusWrapper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PlusOrMinusWrapper(pivot: T)(implicit arg0: Numeric[T])

Value Members

  1. def +-(tolerance: T): Spread[T]

    Creates and returns a Spread from the pivot passed to the constructor and the tolerance passed to this method.

    Creates and returns a Spread from the pivot passed to the constructor and the tolerance passed to this method.

    tolerance

    the tolerance with which to create (and return) the Spread