Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2244

Golang driver has a rather poor support for Decimal128

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Currently the mogodb driver has support for Decimal128 bson type. However, this type is rather useless as no arithmetic operations are supported on it (only conversions from strings, etc.).

      There is a decimal package for go with a rich API at

      https://pkg.go.dev/github.com/shopspring/decimal

      it would be nice to make compatible with this type or provide a similar API.

      Note that a decimal type is very useful for instance in financial applications that require exact representation of the values.

       

       

            Assignee:
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Reporter:
            pdenapo@gmail.com Pablo De Napoli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: