Returns a BSONDouble.
Returns a BSONDouble.
reactivemongo.api.bson.BSONDouble(1.23D)
Extracts the double value if that
's a BSONDouble.
Extracts the double value if that
's a BSONDouble.
import reactivemongo.api.bson.{ BSONDouble, BSONValue } def patMat(v: BSONValue): Boolean = v match { case BSONDouble(v) => v > 0D case _ => false }
BSONDouble utilities