preprocessor: submodule update and doc update
parent
452dc3ceb5
commit
885a206400
|
@ -10492,25 +10492,21 @@ be a one element array containing a type that can be cast to `double`).
|
|||
+----------------------------------+------------+
|
||||
| **Code** | **Output** |
|
||||
+==================================+============+
|
||||
| ``(bool) -3.9`` | ``true`` |
|
||||
| ``(bool) -1.1`` | ``true`` |
|
||||
+----------------------------------+------------+
|
||||
| ``(bool) 0`` | ``false`` |
|
||||
+----------------------------------+------------+
|
||||
| ``(int) 3.9`` | ``3`` |
|
||||
| ``(double) "2.2"`` | ``2.2`` |
|
||||
+----------------------------------+------------+
|
||||
| ``(double) "3.9"`` | ``3.9`` |
|
||||
| ``(tuple) [3.3]`` | ``(3.3)`` |
|
||||
+----------------------------------+------------+
|
||||
| ``(tuple) [3.9]`` | ``(3.9)`` |
|
||||
| ``(array) 4.4`` | ``[4.4]`` |
|
||||
+----------------------------------+------------+
|
||||
| ``(array) 3.9`` | ``[3.9]`` |
|
||||
| ``(double) [5.5]`` | ``5.5`` |
|
||||
+----------------------------------+------------+
|
||||
| ``(double) [3.9]`` | ``3.9`` |
|
||||
| ``(double) [6.6, 7.7]`` | ``error`` |
|
||||
+----------------------------------+------------+
|
||||
| ``(double) "3.9 in a string"`` | ``3.9`` |
|
||||
+----------------------------------+------------+
|
||||
| ``(double) "a string with 3.9"`` | ``error`` |
|
||||
+----------------------------------+------------+
|
||||
| ``(double) [3.9, 3.9]`` | ``error`` |
|
||||
| ``(double) "8.8 in a string"`` | ``error`` |
|
||||
+----------------------------------+------------+
|
||||
|
||||
Casts can be used in expressions:
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 72c216fd7c6b3d4734f6fa6dd85bb42c9687f145
|
||||
Subproject commit ddd43618876b50467bb1e8799f271b38a4913838
|
Loading…
Reference in New Issue