* Converts Numeric bson value to 32 bit integer * This method throws `ERRCODE_DOCUMENTDB_CONVERSIONFAILURE` if bson_value_type is v_decimal128 and : * - NaN is attempted in conversion * - converted result overflows the int32 range */
| 643 | * - converted result overflows the int32 range |
| 644 | */ |
| 645 | int32_t |
| 646 | BsonValueAsInt32(const bson_value_t *value) |
| 647 | { |
| 648 | return BsonValueAsInt32WithRoundingMode(value, ConversionRoundingMode_Floor); |
| 649 | } |
| 650 | |
| 651 | |
| 652 | /* |
no test coverage detected