As an illustration, Julia

submited by
Style Pass
2021-05-16 12:34:30

Below are a series of examples of common operations in Julia. They assume you already have Julia installed and working (the examples are currently tested with Julia v1.0.5).

With Julia installed and added to your path this script can be run by julia hello_world.jl, it can also be run from REPL by typing include("hello_world.jl"), that will evaluate all valid expressions in that file and return the last output.

The example below shows two simple functions, how to call them and print the results. Further examples of number formatting are shown below.

Leave a Comment