-
Type:
Task
-
Resolution: Duplicate
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
🔵 Done
-
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)
-
- Summary
This PR adds `AsFloat64()` and `AsFloat64OK()` functions to handle conversions of BSON values into `float64` values
-
- 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.
- duplicates
-
GODRIVER-3594 Add AsFloat64() and AsFloat64OK() method to RawValue
-
- Closed
-