[CDRIVER-1336] Define constants for special strings returned by bson_decimal128_to_string() Created: 17/Jun/16  Updated: 07/Nov/16  Resolved: 07/Nov/16

Status: Closed
Project: C Driver
Component/s: libbson
Affects Version/s: 1.4.0
Fix Version/s: 1.5.0

Type: Improvement Priority: Minor - P4
Reporter: Jeremy Mikola Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: intern2016
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to PHPC-619 Implement Decimal 128 type spec Closed
related to CDRIVER-1472 NaN handling difference between C and... Closed

 Description   

bson_decimal128_to_string() may return the special strings "Infinity" or "NaN". These values should be exposed as constants so have a known value to compare. Likewise, drivers using libbson can depend on these constants for exposing their own constants.



 Comments   
Comment by Githook User [ 07/Nov/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1336 Define constants for special strings returned by Decimal128
Branch: master
https://github.com/mongodb/libbson/commit/5fac85a7889f3fccd706020a71d9cb04762bc870

Comment by Hannes Magnusson [ 27/Jun/16 ]

makes sense

Generated at Wed Feb 07 21:12:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.