Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
5
Task/Literals-Integer/Emacs-Lisp/literals-integer.l
Normal file
5
Task/Literals-Integer/Emacs-Lisp/literals-integer.l
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
123 ;; decimal all Emacs
|
||||
#b101 ;; binary Emacs 21 up, XEmacs 21
|
||||
#o77 ;; octal Emacs 21 up, XEmacs 21
|
||||
#xFF ;; hex Emacs 21 up, XEmacs 21
|
||||
#3r210 ;; any radix 2-36 Emacs 21 up (but not XEmacs 21.4)
|
||||
3
Task/Literals-Integer/GAP/literals-integer.gap
Normal file
3
Task/Literals-Integer/GAP/literals-integer.gap
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Only decimal integers, but of any length
|
||||
31415926
|
||||
1606938044258990275541962092341162602522202993782792835301376
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
thing=37
|
||||
thing='37' /*this is exactly the same as above. */
|
||||
thing = 37
|
||||
thing = '37' /*this is exactly the same as above. */
|
||||
thing = "37" /*this is exactly the same as above also. */
|
||||
|
||||
say 'base 10=' thing
|
||||
say 'base 2=' x2b(d2x(thing))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue