We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec1cc02 commit 94f1755Copy full SHA for 94f1755
src/main/scala/com/sfxcode/nosql/mongo/bson/BsonConverter.scala
@@ -41,8 +41,8 @@ object BsonConverter {
41
case bi: BigInteger => BsonInt64(bi.longValue())
42
case d: Double => BsonDouble(d)
43
case f: Float => BsonDouble(f)
44
- case bd: BigDecimal => BsonDouble(bd.doubleValue())
45
- case bd: java.math.BigDecimal => BsonDouble(bd.doubleValue())
+ case bd: BigDecimal => BsonDecimal128(bd)
+ case bd: java.math.BigDecimal => BsonDecimal128(bd)
46
case doc: Document => BsonDocument(doc)
47
case map: Map[_, _] =>
48
var doc = Document()
0 commit comments