Updated Nimrod for C programmers (markdown)

This commit is contained in:
Audun Wilhelmsen 2013-12-19 02:37:05 -08:00
parent 30f0462f74
commit c51c711a43
1 changed files with 6 additions and 6 deletions

View File

@ -32,16 +32,16 @@ Note: Code examples are not exactly one-to-one, there may be subtle differences
<tr>
<td>
```C
9 % 8
-9 % 8
(unsigned)(-9) % (unsigned)(8)
9 % 8 // 1
-9 % 8 // -1
(unsigned)(-9) % (unsigned)(8) // 7
```
</td>
<td>
```Nimrod
9 mod 8
-9 mod 8
-9 %% 8
9 mod 8 # 1
-9 mod 8 # -1
-9 %% 8 # 7
```
</td>
<td><b>Modulo operator</b>. <i>%% treats its argument as unsigned numbers</i></i>