mongo-go-driver - PR #2253: GODRIVER-3594: Add AsFloat64() and AsFloat64OK() conversion functions

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • 🔵 Done
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      RafaelCenzano has created PR #2253: GODRIVER-3594: Add AsFloat64() and AsFloat64OK() conversion functions in mongo-go-driver

      Issue Text:
      GODRIVER-3594(https://jira.mongodb.org/browse/GODRIVER-3594)

        1. Summary

      This PR adds `AsFloat64()` and `AsFloat64OK()` functions to handle conversions of BSON values into `float64` values

        1. Background & Motivation

      Matches functions that exist currently for int conversions. It also allows the removal of using an BSON to int conversion and then a cast to float64. This allows floating point values whereas before values were converted to integers and would lose decimal values.

            Assignee:
            Preston Vasquez
            Reporter:
            TPM Jira Automations Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: