You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/Rules/Rules.rst
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1587,9 +1587,11 @@ Basic Math Functions
1587
1587
* ``round(x)`` Rounds to the nearest integer, but rounds halfway cases away from zero (instead of to the nearest even integer).
1588
1588
* ``^`` The caret is used as the exponentiation operator for calculating the value of x to the power of y (x\ :sup:`y`).
1589
1589
1590
-
* ``map(value:fromLow:fromHigh:toLow:toHigh)`` Maps value x in the fromLow/fromHigh range to toLow/toHigh values. Similar to the Arduino map() function. See examples below. (Using a colon as an argument separator to not interfere with regular argument processing)
1590
+
* ``map(value:fromLow:fromHigh:toLow:toHigh)`` Maps ``value`` in the fromLow/fromHigh range to toLow/toHigh values. Similar to the Arduino map() function. See examples below. (Using a colon as an argument separator to not interfere with regular argument processing)
1591
1591
* ``mapc(value:fromLow:fromHigh:toLow:toHigh)`` same as map, but constrains the result to the fromLow/fromHigh range.
1592
1592
1593
+
* ``fmod(x:y)`` Like the modulo operator ``%`` that returns an integer remainder, ``fmod`` returns the floating-point remainder of the division ``x / y``. Added: 2025-12-13 (Not available in limited builds)
1594
+
1593
1595
1594
1596
Rules example:
1595
1597
@@ -1662,6 +1664,7 @@ Radian Angle:
1662
1664
* ``aSin(x)`` Arc Sine of x (radian)
1663
1665
* ``aCos(x)`` Arc Cosine of x (radian)
1664
1666
* ``aTan(x)`` Arc Tangent of x (radian)
1667
+
* ``aTan2(x:y)`` Arc Tangent of x / y (radian) Added: 2025-12-13
1665
1668
1666
1669
Degree Angle:
1667
1670
@@ -1671,6 +1674,7 @@ Degree Angle:
1671
1674
* ``aSin_d(x)`` Arc Sine of x (degree)
1672
1675
* ``aCos_d(x)`` Arc Cosine of x (degree)
1673
1676
* ``aTan_d(x)`` Arc Tangent of x (degree)
1677
+
* ``aTan2_d(x:y)`` Arc Tangent of x / y (degree) Added: 2025-12-13
0 commit comments