Skip to content

Commit fac1728

Browse files
authored
DOCSP-50657-incorrect-decimal-examples (#12393)
1 parent c16e656 commit fac1728

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

content/manual/upcoming/source/reference/operator/aggregation/isNumber.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ collection to populate test data:
6262
.. code-block:: javascript
6363

6464
db.getSiblingDB("examples").sensors.insertMany([
65-
{ "_id" : 1, "reading" : NumberDecimal(26.0) },
65+
{ "_id" : 1, "reading" : NumberDecimal("26.0") },
6666
{ "_id" : 2, "reading" : NumberLong(25.0) },
6767
{ "_id" : 3, "reading" : NumberInt(24) },
6868
{ "_id" : 4, "reading" : 24.0 },
6969
{ "_id" : 5, "reading" : "24" },
70-
{ "_id" : 6, "reading" : [ NumberDecimal(26) ]}
70+
{ "_id" : 6, "reading" : [ NumberDecimal("26") ]}
7171
])
7272

7373
The following aggregation uses the :pipeline:`$addFields` aggregation

content/manual/upcoming/source/reference/operator/aggregation/tan.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
==================
22
$tan (aggregation)
33
==================
4-
5-
.. meta::
6-
:description: Calculate the tangent of a value in radians using the `$tan` operator in MongoDB aggregation.
4+
5+
.. meta::
6+
:description: Calculate the tangent of a value in radians using the `$tan` operator in MongoDB aggregation.
77

88
.. default-domain:: mongodb
99

@@ -131,7 +131,7 @@ Example
131131
"_id" : ObjectId("5c50782193f833234ba90d85"),
132132
"angle_a" : NumberDecimal("53.13010235415597870314438744090659"),
133133
"side_a" : NumberDecimal("3")
134-
"side_b" : NumberDecimal(4.000000000000000000000000000000000")
134+
"side_b" : NumberDecimal("4.000000000000000000000000000000000")
135135
}
136136

137137
Since ``angle_a`` and ``side_a`` are stored as

content/manual/upcoming/source/reference/operator/aggregation/unwind.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,10 @@ Examples
394394
.. code-block:: javascript
395395
:copyable: false
396396

397-
{ _id" : "M", averagePrice: NumberDecimal("120") }
398-
{ _id" : "L", averagePrice: NumberDecimal("80") }
399-
{ _id" : "S", averagePrice: NumberDecimal("80") }
400-
{ _id" : null, averagePrice: NumberDecimal("45.25") }
397+
{ _id : "M", averagePrice: NumberDecimal("120") }
398+
{ _id : "L", averagePrice: NumberDecimal("80") }
399+
{ _id : "S", averagePrice: NumberDecimal("80") }
400+
{ _id : null, averagePrice: NumberDecimal("45.25") }
401401

402402
.. seealso::
403403

0 commit comments

Comments
 (0)