@@ -45,12 +45,10 @@ Behavior
45
45
``null`` and ``NaN``
46
46
~~~~~~~~~~~~~~~~~~~~
47
47
48
- If the first argument to :expression:`$atan2` is ``null``,
49
- :expression:`$atan2` returns ``null``. If the first argument to
50
- :expression:`$atan2` is ``NaN``, :expression:`$atan2` returns ``NaN``.
51
- If the first argument resolves to a number *and* the
52
- second argument resolves to either ``NaN`` or ``null``,
53
- :expression:`$atan2` returns the ``NaN`` or ``null`` respectively.
48
+ If either argument given to ``$atan2`` is ``null``, the expression returns
49
+ ``null``. If either argument is ``NaN``, the expression returns ``NaN``.
50
+ If one argument is ``null`` and the other is ``NaN``, the expression returns
51
+ ``null``.
54
52
55
53
56
54
.. list-table::
@@ -61,21 +59,24 @@ second argument resolves to either ``NaN`` or ``null``,
61
59
- Results
62
60
63
61
* - ``{ $atan2: [ NaN, <value> ] }``
62
+ - ``NaN``
64
63
65
- *or*
66
-
67
- ``{ $atan2: [ <value>, NaN ] }``
68
-
64
+ * - ``{ $atan2: [ <value>, NaN ] }``
69
65
- ``NaN``
70
66
71
67
* - ``{ $atan2: [ null, <value> ] }``
72
-
73
- *or*
68
+ - ``null``
74
69
75
- ``{ $atan2: [ <value>, null ] }``
70
+ * - ``{ $atan2: [ <value>, null ] }``
71
+ - ``null``
76
72
73
+ * - ``{ $atan2: [ NaN, null ] }``
77
74
- ``null``
78
75
76
+ * - ``{ $atan2: [ null, NaN ] }``
77
+ - ``null``
78
+
79
+
79
80
Example
80
81
-------
81
82
0 commit comments