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