summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorManu <manu.delab@gmail.com>2013-07-16 20:40:09 +1200
committerManu <manu.delab@gmail.com>2013-07-16 20:40:09 +1200
commit1ee3db996576f81e9f8154d8efda31774f9c7726 (patch)
treeecab6c62852190452e716b66a7415509e18b4149
parent4718ea4e0cbd26c5ad36d67bc73e3b8192370169 (diff)
binary, octal, hexadecimal integers
-rw-r--r--racket.html.markdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/racket.html.markdown b/racket.html.markdown
index 4b72591a..50c8c523 100644
--- a/racket.html.markdown
+++ b/racket.html.markdown
@@ -35,6 +35,9 @@ Feedback is appreciated! You can reach me at [@th3rac25](http://twitter.com/th3r
;;; Numbers
9999999999999999999999 ; integers
+#b111 ; binary => 7
+#o111 ; octal => 73
+#x111 ; hexadecimal => 273
3.14 ; reals
6.02e+23
1/2 ; rationals
@@ -49,6 +52,7 @@ Feedback is appreciated! You can reach me at [@th3rac25](http://twitter.com/th3r
(+ 1 1) ; => 2
(- 8 1) ; => 7
(* 10 2) ; => 20
+(expt 2 3) ; => 8
(quotient 5 2) ; => 2
(remainder 5 2) ; => 1
(/ 35 5) ; => 7