Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-747

Decimal128 inspect result is does not evaluate back to original value

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.13.1
    • Affects Version/s: None
    • Component/s: Bson
    • None
    • Iteration Barcelona
    • Not Needed

      Enterprise replset [direct: primary]> Decimal128.fromString('102.24')
      Decimal128("102.24")
      Enterprise replset [direct: primary]> Decimal128('102.24')
      Decimal128("4.406636576769E-6164")
      

      The output should use Decimal128.fromString, cf. https://github.com/mongodb/js-bson/commit/616665f5e6f7dd06a88de450aaccaa203fa6c652.

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: