Decimal128
Reference group: BSON types and field properties
What it does
Decimal floating-point BSON type with defined precision.
Syntax
NumberDecimal("decimal-text")
Use case
Money and decimal arithmetic.
Decimal128: practical example
NumberDecimal("1999.95")💡 Explanation
Decimal floating-point BSON type with defined precision.
When to use it
Money and decimal arithmetic.
Key Takeaways
- Decimal floating-point BSON type with defined precision.
- Typical use: Money and decimal arithmetic.