Packages

object BSONDecimal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BSONDecimal
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val NaN: BSONDecimal

    Decimal128 representation of a Not-a-Number (NaN) value

  2. val NegativeInf: BSONDecimal

    Decimal128 representation of the negative infinity

  3. val NegativeNaN: BSONDecimal

    Decimal128 representation of a negative Not-a-Number (-NaN) value

  4. val NegativeZero: BSONDecimal

    Decimal128 representation of a negative zero value

  5. val PositiveInf: BSONDecimal

    Decimal128 representation of the positive infinity

  6. val PositiveZero: BSONDecimal

    Decimal128 representation of a postive zero value

  7. def apply(high: Long, low: Long): BSONDecimal

    Factory alias.

    Factory alias.

    high

    the high-order 64 bits

    low

    the low-order 64 bits

    Annotations
    @inline()
  8. def fromBigDecimal(value: BigDecimal): Try[BSONDecimal]

    Returns a BSON decimal (Decimal128) corresponding to the given BigDecimal.

    Returns a BSON decimal (Decimal128) corresponding to the given BigDecimal.

    value

    the BigDecimal representation

    Annotations
    @inline()
  9. def fromBigDecimal(value: BigDecimal): Try[BSONDecimal]

    Returns a BSON decimal (Decimal128) corresponding to the given BigDecimal.

    Returns a BSON decimal (Decimal128) corresponding to the given BigDecimal.

    value

    the BigDecimal representation

    Annotations
    @inline()
  10. def fromLong(high: Long): Try[BSONDecimal]

    Returns a Decimal128 value represented the given high 64bits value, using a default for the low one.

    Returns a Decimal128 value represented the given high 64bits value, using a default for the low one.

    high

    the high-order 64 bits

    Annotations
    @inline()
  11. def parse(repr: String): Try[BSONDecimal]

    Returns the Decimal128 corresponding to the given string representation.

    Returns the Decimal128 corresponding to the given string representation.

    repr

    the Decimal128 value represented as string

    See also

    Decimal128 string representation

  12. def toBigDecimal(decimal: BSONDecimal): Try[BigDecimal]

    Returns the corresponding BigDecimal.

  13. def unapply(that: Any): Option[(Long, Long)]

    Extracts the (high, low) representation.