From 30f0462f74276a473db658a90dc4ef707ade7862 Mon Sep 17 00:00:00 2001 From: Audun Wilhelmsen Date: Thu, 19 Dec 2013 02:35:58 -0800 Subject: [PATCH] Updated Nimrod for C programmers (markdown) --- Nimrod-for-C-programmers.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Nimrod-for-C-programmers.md b/Nimrod-for-C-programmers.md index 0836a20..644ee5f 100644 --- a/Nimrod-for-C-programmers.md +++ b/Nimrod-for-C-programmers.md @@ -28,6 +28,27 @@ Note: Code examples are not exactly one-to-one, there may be subtle differences CNimrodComment + + + +```C +9 % 8 +-9 % 8 +(unsigned)(-9) % (unsigned)(8) +``` + + +```Nimrod +9 mod 8 +-9 mod 8 +-9 %% 8 +``` + +Modulo operator. %% treats its argument as unsigned numbers + + + + ```C