Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
4
Task/Literals-Integer/DCL/literals-integer.dcl
Normal file
4
Task/Literals-Integer/DCL/literals-integer.dcl
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
$ decimal1 = 123490
|
||||
$ decimal2 = %D123490
|
||||
$ octal = %O12370
|
||||
$ hex = %X1234AF0
|
||||
10
Task/Literals-Integer/Elixir/literals-integer.elixir
Normal file
10
Task/Literals-Integer/Elixir/literals-integer.elixir
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
1234 #=> 1234
|
||||
1_000_000 #=> 1000000
|
||||
0010 #=> 10
|
||||
0b111 #=> 7
|
||||
0o10 #=> 8
|
||||
0x1f #=> 31
|
||||
|
||||
0B10 #=> syntax error before: B10
|
||||
0X10 #=> syntax error before: X10
|
||||
0xFF #=> 255
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
10b123 16b123 8b123 20b123 2b123 1b123 0b123 100b123 99 0
|
||||
123 291 83 443 11 6 3 10203 99 0
|
||||
10b123 16b123 8b123 20b123 2b123 1b123 0b123 100b123 99 0 0bsilliness
|
||||
1
|
||||
123 291 83 443 11 6 3 10203 99 0 1 28
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue