This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
4rpl:data_types [2021/03/28 12:21] – virgilw | 4rpl:data_types [2023/01/17 03:38] (current) – [Data types and Coercion] Karsten75 | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Data types and Coercion ===== | ===== Data types and Coercion ===== | ||
- | The following table summarizes the intrinsic data types in 4rpl and how they are coerced. To read the table, look at a datatype in the left column. | + | The following table summarizes the intrinsic data types in 4RPL and how they are coerced |
- | | ^ int ^ float ^ string | + | | ^ int ^ float ^ string |
- | ^ int | int | float | ToString | + | ^ int | int | float | ToString |
- | ^ float | int | float | ToString | + | ^ float | int | float | ToString |
- | ^ string | Parse To int | Parse To Float | string | + | ^ string | Parse To int | Parse To Float | string |
- | ^ list | List Length | + | ^ list | List Length |
- | ^ table | Table Length | + | ^ table | Table Length |
- | ^ vector | Vector Length | Vector Length | + | ^ vector | Vector Length | Vector Length |
+ | ^ null | 0 | 0.0 | Empty String | ||
- | *A 'Table from list' is constructed by taking each item in a list and adding it to a table where the item's string representation becomes the key and the item becomes the value.\\ | ||
- | *A 'Table of x, | + | [(TFL>A 'Table from list' is constructed by taking each item in a list and adding it to a table where the item's string representation becomes the key and the item becomes the value.)] |
+ | [(TFV>A 'Table of x, | ||
+ | [(TRC> See note in [[4rpl: | ||
+ | |||
+ | ~~REFNOTES~~ | ||
===== Comparisons ===== | ===== Comparisons ===== |