Skip to content

Commit 1e90836

Browse files
committed
refactor: return scala BigDecimal
1 parent b1f5d78 commit 1e90836

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/scala/dev/mongocamp/driver/mongodb/bson/BsonConverter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ object BsonConverter {
169169
case i: BsonInt32 => i.getValue
170170
case l: BsonInt64 => l.getValue
171171
case d: BsonDouble => d.doubleValue()
172-
case d: BsonDecimal128 => d.getValue.bigDecimalValue()
172+
case d: BsonDecimal128 => new scala.math.BigDecimal(d.getValue.bigDecimalValue())
173173
case doc: BsonDocument => Document(doc)
174174
case array: BsonArray =>
175175
array.getValues.asScala.toList.map(v => fromBson(v))

0 commit comments

Comments
 (0)