BSONDecimal

reactivemongo.api.bson.BSONDecimal
See theBSONDecimal companion class
object BSONDecimal

BSONDecimal factories & utilities

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

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

Factory alias.

Factory alias.

Value parameters

high

the high-order 64 bits

low

the low-order 64 bits

Attributes

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 parameters

value

the BigDecimal representation

Attributes

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

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

Value parameters

value

the BigDecimal representation

Attributes

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.

Value parameters

high

the high-order 64 bits

Attributes

def parse(repr: String): Try[BSONDecimal]

Returns the Decimal128 corresponding to the given string representation.

Returns the Decimal128 corresponding to the given string representation.

Value parameters

repr

the Decimal128 value represented as string

Attributes

See also

Returns the string representation for the given BSONDecimal.

Returns the string representation for the given BSONDecimal.

Attributes

Returns the corresponding BigDecimal.

Returns the corresponding BigDecimal.

Attributes

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

Extracts the (high, low) representation if that's BSONDecimal.

Extracts the (high, low) representation if that's BSONDecimal.

Attributes

Concrete fields

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

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

Attributes

Decimal128 representation of the negative infinity

Decimal128 representation of the negative infinity

Attributes

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

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

Attributes

Decimal128 representation of a negative zero value

Decimal128 representation of a negative zero value

Attributes

Decimal128 representation of the positive infinity

Decimal128 representation of the positive infinity

Attributes

Decimal128 representation of a postive zero value

Decimal128 representation of a postive zero value

Attributes