| 1 |
# https://learnxinyminutes.com/docs/julia/ |
| 2 |
# Single line comments start with a hash (pound) symbol. |
| 3 |
#= Multiline comments can be written |
| 4 |
by putting '#=' before the text and '=#' |
| 5 |
after the text. They can also be nested. |
| 6 |
=# |
| 7 |
|
| 8 |
#################################################### |
| 9 |
## 1. Primitive Datatypes and Operators |
| 10 |
#################################################### |
| 11 |
|
| 12 |
# Everything in Julia is an expression. |
| 13 |
|
| 14 |
# There are several basic types of numbers. |
| 15 |
3 # => 3 (Int64) |
| 16 |
3.2 # => 3.2 (Float64) |
| 17 |
2 + 1im # => 2 + 1im (Complex{Int64}) |
| 18 |
2//3 # => 2//3 (Rational{Int64}) |