Skip to content

Commit c847bd1

Browse files
committed
Document C-like type casting syntax
In addition to the existing documentation of functional notation, add documentation of the C-like notation as well. This will bring some consistency with the the documentation for the casts to multi-word types (e.g., unsigned int).
1 parent afde77c commit c847bd1

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

Language/Variables/Conversion/byteCast.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Converts a value to the link:../../data-types/byte[byte] data type.
2323

2424
[float]
2525
=== Syntax
26-
`byte(x)`
26+
`byte(x)` +
27+
`(byte)x` (C-style type conversion)
2728

2829

2930
[float]

Language/Variables/Conversion/charCast.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Converts a value to the link:../../data-types/char[char] data type.
2323

2424
[float]
2525
=== Syntax
26-
`char(x)`
26+
`char(x)` +
27+
`(char)x` (C-style type conversion)
2728

2829

2930
[float]

Language/Variables/Conversion/floatCast.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Converts a value to the link:../../data-types/float[float] data type.
2323

2424
[float]
2525
=== Syntax
26-
`float(x)`
26+
`float(x)` +
27+
`(float)x` (C-style type conversion)
2728

2829

2930
[float]

Language/Variables/Conversion/intCast.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Converts a value to the link:../../data-types/int[int] data type.
2323

2424
[float]
2525
=== Syntax
26-
`int(x)`
26+
`int(x)` +
27+
`(int)x` (C-style type conversion)
2728

2829

2930
[float]

Language/Variables/Conversion/longCast.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Converts a value to the link:../../data-types/long[long] data type.
2323

2424
[float]
2525
=== Syntax
26-
`long(x)`
26+
`long(x)` +
27+
`(long)x` (C-style type conversion)
2728

2829

2930
[float]

Language/Variables/Conversion/wordcast.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ Converts a value to the link:../../data-types/word[word] data type.
2424
[float]
2525
=== Syntax
2626
`word(x)` +
27-
`word(h, l)`
27+
`word(h, l)` +
28+
`(word)x` (C-style type conversion)
2829

2930
[float]
3031
=== Parameters

0 commit comments

Comments
 (0)