Skip to content

Commit 7f2f7bf

Browse files
authored
DOCSP-50657-incorrect-decimal-examples (#12393) (#12396)
1 parent d8d13b0 commit 7f2f7bf

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

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

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

6161
db.getSiblingDB("examples").sensors.insertMany([
62-
{ "_id" : 1, "reading" : NumberDecimal(26.0) },
62+
{ "_id" : 1, "reading" : NumberDecimal("26.0") },
6363
{ "_id" : 2, "reading" : NumberLong(25.0) },
6464
{ "_id" : 3, "reading" : NumberInt(24) },
6565
{ "_id" : 4, "reading" : 24.0 },
6666
{ "_id" : 5, "reading" : "24" },
67-
{ "_id" : 6, "reading" : [ NumberDecimal(26) ]}
67+
{ "_id" : 6, "reading" : [ NumberDecimal("26") ]}
6868
])
6969

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Example
128128
"_id" : ObjectId("5c50782193f833234ba90d85"),
129129
"angle_a" : NumberDecimal("53.13010235415597870314438744090659"),
130130
"side_a" : NumberDecimal("3")
131-
"side_b" : NumberDecimal(4.000000000000000000000000000000000")
131+
"side_b" : NumberDecimal("4.000000000000000000000000000000000")
132132
}
133133

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

content/manual/manual/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

content/manual/v6.0/source/reference/operator/aggregation/isNumber.txt

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

6161
db.getSiblingDB("examples").sensors.insertMany([
62-
{ "_id" : 1, "reading" : NumberDecimal(26.0) },
62+
{ "_id" : 1, "reading" : NumberDecimal("26.0") },
6363
{ "_id" : 2, "reading" : NumberLong(25.0) },
6464
{ "_id" : 3, "reading" : NumberInt(24) },
6565
{ "_id" : 4, "reading" : 24.0 },
6666
{ "_id" : 5, "reading" : "24" },
67-
{ "_id" : 6, "reading" : [ NumberDecimal(26) ]}
67+
{ "_id" : 6, "reading" : [ NumberDecimal("26") ]}
6868
])
6969

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

content/manual/v6.0/source/reference/operator/aggregation/tan.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Example
128128
"_id" : ObjectId("5c50782193f833234ba90d85"),
129129
"angle_a" : NumberDecimal("53.13010235415597870314438744090659"),
130130
"side_a" : NumberDecimal("3")
131-
"side_b" : NumberDecimal(4.000000000000000000000000000000000")
131+
"side_b" : NumberDecimal("4.000000000000000000000000000000000")
132132
}
133133

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

content/manual/v6.0/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

content/manual/v7.0/source/reference/operator/aggregation/isNumber.txt

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

6161
db.getSiblingDB("examples").sensors.insertMany([
62-
{ "_id" : 1, "reading" : NumberDecimal(26.0) },
62+
{ "_id" : 1, "reading" : NumberDecimal("26.0") },
6363
{ "_id" : 2, "reading" : NumberLong(25.0) },
6464
{ "_id" : 3, "reading" : NumberInt(24) },
6565
{ "_id" : 4, "reading" : 24.0 },
6666
{ "_id" : 5, "reading" : "24" },
67-
{ "_id" : 6, "reading" : [ NumberDecimal(26) ]}
67+
{ "_id" : 6, "reading" : [ NumberDecimal("26") ]}
6868
])
6969

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

content/manual/v7.0/source/reference/operator/aggregation/tan.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Example
128128
"_id" : ObjectId("5c50782193f833234ba90d85"),
129129
"angle_a" : NumberDecimal("53.13010235415597870314438744090659"),
130130
"side_a" : NumberDecimal("3")
131-
"side_b" : NumberDecimal(4.000000000000000000000000000000000")
131+
"side_b" : NumberDecimal("4.000000000000000000000000000000000")
132132
}
133133

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

content/manual/v7.0/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)