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

Golang driver has a rather poor support for Decimal128

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Gone away
    • Icon: Unknown Unknown
    • None
    • None
    • None
    • None

    Description

      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.

       

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: