-
See Also
- Formats
- BSON
-
- Functions
- MongoCollectionInsert
- Tech Notes
-
-
See Also
- Formats
- BSON
-
- Functions
- MongoCollectionInsert
- Tech Notes
-
See Also
BSONDecimal128[num]
is an object that represents an Object ID in the BSON format.
BSONDecimal128
BSONDecimal128[num]
is an object that represents an Object ID in the BSON format.
Details and Options
- To use BSONDecimal128, you first need to load MongoLink using Needs["MongoLink`"].
- BSONDecimal128 is a special type of the "BSON" format.
- The BSONDecimal128 is a 128-bit IEEE 754-2008 decimal floating point type. It supports 34 decimal digits of precision.
- Normal[BSONDecimal128[num]] returns num.
Examples
open all close allBasic Examples (1)
Needs["MongoLink`"]Create a BSONDecimal128 from a number:
num = BSONDecimal128[0.273980323480923480293487]Use Normal to get back the underlying number:
Normal[num]Possible Issues (2)
Needs["MongoLink`"]If the number is too large, a failure is returned:
BSONDecimal128[535983729852732839083098303980389842734982734]Needs["MongoLink`"]If the number has too many digits of decimal precision, the number will be rounded:
BSONDecimal128[0.27398032348092348029348750238759234823749234082304982273783579837423702384930482323423423423423423451346792347923742396493]Tech Notes
Text
Wolfram Research (2019), BSONDecimal128, Wolfram Language function, https://reference.wolfram.com/language/MongoLink/ref/BSONDecimal128.html.
CMS
Wolfram Language. 2019. "BSONDecimal128." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/MongoLink/ref/BSONDecimal128.html.
APA
Wolfram Language. (2019). BSONDecimal128. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/MongoLink/ref/BSONDecimal128.html
BibTeX
@misc{reference.wolfram_2026_bsondecimal128, author="Wolfram Research", title="{BSONDecimal128}", year="2019", howpublished="\url{https://reference.wolfram.com/language/MongoLink/ref/BSONDecimal128.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_bsondecimal128, organization={Wolfram Research}, title={BSONDecimal128}, year={2019}, url={https://reference.wolfram.com/language/MongoLink/ref/BSONDecimal128.html}, note=[Accessed: 13-June-2026]}