Updated Nimrod for C programmers (markdown)
This commit is contained in:
parent
30f0462f74
commit
c51c711a43
|
@ -32,16 +32,16 @@ Note: Code examples are not exactly one-to-one, there may be subtle differences
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
```C
|
```C
|
||||||
9 % 8
|
9 % 8 // 1
|
||||||
-9 % 8
|
-9 % 8 // -1
|
||||||
(unsigned)(-9) % (unsigned)(8)
|
(unsigned)(-9) % (unsigned)(8) // 7
|
||||||
```
|
```
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
```Nimrod
|
```Nimrod
|
||||||
9 mod 8
|
9 mod 8 # 1
|
||||||
-9 mod 8
|
-9 mod 8 # -1
|
||||||
-9 %% 8
|
-9 %% 8 # 7
|
||||||
```
|
```
|
||||||
</td>
|
</td>
|
||||||
<td><b>Modulo operator</b>. <i>%% treats its argument as unsigned numbers</i></i>
|
<td><b>Modulo operator</b>. <i>%% treats its argument as unsigned numbers</i></i>
|
||||||
|
|
Loading…
Reference in New Issue