-
Type: Task
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Labels:
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.