[DOCS-13975] Incorrect behavioral description in $convert Converting to a Double section for Boolean Created: 06/Nov/20  Updated: 30/Oct/23  Resolved: 21/Oct/21

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Minor - P4
Reporter: Matthew Chiaravalloti Assignee: Jocelyn Mendez
Resolution: Fixed Votes: 0
Labels: docs-server-onboarding, quick-fix
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 2 years, 15 weeks, 6 days ago
Epic Link: DOCSP-11701

 Description   

Description

The Behavior for converting a boolean to a double in the "Converting to a Double" section of $convert is incorrect. It says

Returns NumberLong(0) for false.

Return NumberLong(1) for true.

It should say NumberDouble in both cases instead of NumberLong.

This is a minor typo and practically doesn't matter since numeric types are all mutually comparable in agg. However, it is still worth addressing at some point.

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 21/Oct/21 ]

Author:

{'name': 'jocelyn-mendez1', 'email': '91144778+jocelyn-mendez1@users.noreply.github.com', 'username': 'jocelyn-mendez1'}

Message: DOCS-13975 Corrected NumberLong typo to NumberDouble (#6032)

Co-authored-by: Jocelyn Mendez <jocelyn.mendez@Jocelyns-MacBook-Pro.local>
Branch: master
https://github.com/mongodb/docs/commit/1b87298ce4b5dc7622dbd02dabb548ef054abe56

Generated at Thu Feb 08 08:09:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.