Provides implicit org.scalacheck.Gen.Choose instances
Provides implicit org.scalacheck.Gen.Choose instances
- Companion
- class
Type members
Classlikes
Value members
Concrete methods
Transform a Choose[T] to a Choose[U] where T and U are two isomorphic types whose relationship is described by the provided transformation functions. (exponential functor map)
Transform a Choose[T] to a Choose[U] where T and U are two isomorphic types whose relationship is described by the provided transformation functions. (exponential functor map)
Implicits
Implicits
Choose a BigDecimal number between two given numbers.
Choose a BigDecimal number between two given numbers.
The minimum scale used will be 34. That means that the fractional part will have at least 34 digits (more if one of the given numbers has a scale larger than 34).
The minimum scale was chosen based on Scala's default scale for expanding infinite fractions:
BigDecimal(1) / 3 // 0.3333333333333333333333333333333333
See chooseBigDecimalScale for more information about scale.