Just another update

This commit is contained in:
Ingy döt Net 2015-02-20 00:35:01 -05:00
parent a25938f123
commit 00a190b0a6
6591 changed files with 94363 additions and 23227 deletions

View file

@ -1,2 +1,4 @@
---
category:
- Simple
note: Basic language learning

View file

@ -0,0 +1,5 @@
123 -- decimal
-1_2_3 -- decimal
0x7b -- hexadecimal
0c173 -- octal
0b111_1011 -- binary

View file

@ -0,0 +1,2 @@
{NATURAL_8} 255
{INTEGER_64} 2_147_483_648

View 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})

View file

@ -0,0 +1,2 @@
julia> 0b1011010111 == 0o1327 == 0x2d7 == 727
true

View file

@ -0,0 +1,4 @@
Bin = 0b010101,
Octal = 0o666,
Hex = 0x1fa,
CharCode = 0'a.