From the course: Learning Julia

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Julia variables and data types

Julia variables and data types - Julia Tutorial

From the course: Learning Julia

Start my 1-month free trial

Julia variables and data types

- [Instructor] In this chapter, we're going to learn about some of the basics of the Julia language and we're going to start off with an overview of Julia variables and data types. So, I'm going to open up the variables_start file here in my editor and, okay, I'm just going to scroll right to there. So, there are five basic data types in Julia. There are numbers such as integers and floating points, there are Boolean values of true or false, there are strings and individual characters. The integer and floating point numbers have some additional subtypes and we'll look at those a little bit later. Now, Julia is a dynamically typed language, similar to JavaScript and Python. And what that means is that you don't need to declare the type of a variable before you use it. I can just assign a value directly to a variable and Julia will infer what type that variable should be. So, you can see I've already created some variables here. I have an integer, a floating point, a string, a character…

Contents