Skip to content

Commit d1c3ecc

Browse files
authored
Merge pull request #530 from per1234/unsigned-int-long-cast
Add unsigned int/long type casting pages
2 parents d652688 + 584ff5e commit d1c3ecc

File tree

8 files changed

+122
-6
lines changed

8 files changed

+122
-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]
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title: (unsigned int)
3+
categories: [ "Variables" ]
4+
subCategories: [ "Conversion" ]
5+
---
6+
7+
8+
9+
10+
11+
= (unsigned int)
12+
13+
14+
// OVERVIEW SECTION STARTS
15+
[#overview]
16+
--
17+
18+
[float]
19+
=== Description
20+
Converts a value to the link:../../data-types/unsignedint[unsigned int] data type.
21+
[%hardbreaks]
22+
23+
24+
[float]
25+
=== Syntax
26+
`(unsigned int)x`
27+
28+
29+
[float]
30+
=== Parameters
31+
`x`: a value of any type
32+
33+
[float]
34+
=== Returns
35+
`unsigned int`
36+
37+
--
38+
// OVERVIEW SECTION ENDS
39+
40+
41+
42+
43+
// SEE ALSO SECTION
44+
[#see_also]
45+
--
46+
47+
[float]
48+
=== See also
49+
50+
[role="language"]
51+
* #LANGUAGE# link:../../data-types/unsignedint[unsigned int]
52+
53+
54+
--
55+
// SEE ALSO SECTION ENDS
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title: (unsigned long)
3+
categories: [ "Variables" ]
4+
subCategories: [ "Conversion" ]
5+
---
6+
7+
8+
9+
10+
11+
= (unsigned long)
12+
13+
14+
// OVERVIEW SECTION STARTS
15+
[#overview]
16+
--
17+
18+
[float]
19+
=== Description
20+
Converts a value to the link:../../data-types/unsignedlong[unsigned long] data type.
21+
[%hardbreaks]
22+
23+
24+
[float]
25+
=== Syntax
26+
`(unsigned long)x`
27+
28+
29+
[float]
30+
=== Parameters
31+
`x`: a value of any type
32+
33+
[float]
34+
=== Returns
35+
`unsigned long`
36+
37+
--
38+
// OVERVIEW SECTION ENDS
39+
40+
41+
42+
43+
// SEE ALSO SECTION STARTS
44+
[#see_also]
45+
--
46+
47+
[float]
48+
=== See also
49+
50+
[role="language"]
51+
* #LANGUAGE# link:../../data-types/unsignedlong[unsigned long]
52+
53+
54+
--
55+
// SEE ALSO SECTION ENDS

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

3031
[float]

0 commit comments

Comments
 (0)