Decimal128 isZero

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.5.0
    • Component/s: BSON
    • None
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      ```

      import github.com/rs/zerolog/log

      p := primitive.NewDecimal128(0, 0)

      log.Debug().
      Str("testData.TestPrimitiveDecimal128", testData.TestPrimitiveDecimal128.String()).
      Str("p", p.String()).
      Str("mongo.DecimalZero", Decimal128Zero.String()).
      Bool("p.IsZero", p.IsZero()).
      Bool("mongo.DecimalZero.IsZero", Decimal128Zero.IsZero()).
      Msg("init")

      ```

      Running this code gives me the following:

            Assignee:
            Benji Rewis (Inactive)
            Reporter:
            Swee Tat Lim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: