object BSONDecimal
- Alphabetic
- By Inheritance
- BSONDecimal
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- val NaN: BSONDecimal
Decimal128 representation of a Not-a-Number (NaN) value
- val NegativeInf: BSONDecimal
Decimal128 representation of the negative infinity
- val NegativeNaN: BSONDecimal
Decimal128 representation of a negative Not-a-Number (-NaN) value
- val NegativeZero: BSONDecimal
Decimal128 representation of a negative zero value
- val PositiveInf: BSONDecimal
Decimal128 representation of the positive infinity
- val PositiveZero: BSONDecimal
Decimal128 representation of a postive zero value
- 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()
- 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()
- 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()
- 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()
- 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
- def toBigDecimal(decimal: BSONDecimal): Try[BigDecimal]
Returns the corresponding BigDecimal.
- def unapply(that: Any): Option[(Long, Long)]
Extracts the (high, low) representation.