Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,2 +1,4 @@
|
|||
---
|
||||
category:
|
||||
- Simple
|
||||
note: Basic language learning
|
||||
|
|
|
|||
5
Task/Literals-Integer/Eiffel/literals-integer-1.e
Normal file
5
Task/Literals-Integer/Eiffel/literals-integer-1.e
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
123 -- decimal
|
||||
-1_2_3 -- decimal
|
||||
0x7b -- hexadecimal
|
||||
0c173 -- octal
|
||||
0b111_1011 -- binary
|
||||
2
Task/Literals-Integer/Eiffel/literals-integer-2.e
Normal file
2
Task/Literals-Integer/Eiffel/literals-integer-2.e
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
{NATURAL_8} 255
|
||||
{INTEGER_64} 2_147_483_648
|
||||
6
Task/Literals-Integer/Euphoria/literals-integer.euphoria
Normal file
6
Task/Literals-Integer/Euphoria/literals-integer.euphoria
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
printf(1,"Decimal:\t%d, %d, %d, %d\n",{-10,10,16,64})
|
||||
printf(1,"Hex:\t%x, %x, %x, %x\n",{-10,10,16,64})
|
||||
printf(1,"Octal:\t%o, %o, %o, %o\n",{-10,10,16,64})
|
||||
printf(1,"Exponential:\t%e, %e, %e, %e\n",{-10,10,16,64.12})
|
||||
printf(1,"Floating Point\t%3.3f, %3.3f, %+3.3f\n",{-10,10.2,16.25,64.12625})
|
||||
printf(1,"Floating Point or Exponential: %g, %g, %g, %g\n",{10,16,64,123456789.123})
|
||||
2
Task/Literals-Integer/Julia/literals-integer.julia
Normal file
2
Task/Literals-Integer/Julia/literals-integer.julia
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
julia> 0b1011010111 == 0o1327 == 0x2d7 == 727
|
||||
true
|
||||
4
Task/Literals-Integer/Mercury/literals-integer.mercury
Normal file
4
Task/Literals-Integer/Mercury/literals-integer.mercury
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Bin = 0b010101,
|
||||
Octal = 0o666,
|
||||
Hex = 0x1fa,
|
||||
CharCode = 0'a.
|
||||
Loading…
Add table
Add a link
Reference in a new issue