Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1795

Shouldn't promoteValues cast Decimal128 as floats?

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.1.10
    • Component/s: BSON
    • Labels:
    • Environment:
      $ node -v
      v10.13.0

      Was surpised to find Decimal128 values not casted back on find like other special bsonType values. Not sure if it's missing or not. I guess there might be some precision issues while casting, but getting back floats when no precision is lost would be great. 

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            olivier@mg-crea.com Olivier Louvignes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: