Learn about the difference between the different subtypes of integer and floating point types and the sizes of numbers they can represent.
- [Instructor] Okay, in this example we'll see how Julia … works with different kinds of numbers. … So, I'm going to open up numbers_start. … So, Julia defines integer subtypes … that have different byte sizes for both signed … and unsigned integers. … So, there's Int8, … Int16, … Int32 and so on. … And there are unsigned versions of these as well. … So, for example, I can specify that I want … a 16-bit signed integer … by making a variable. … And I can say Int16 and then give it the value I want. … In this case, I'll just use 1. … And then if I print out … the type of … that variable. … Or I can have Julia infer the type when I assign the value. … So, for example, I can make a variable b … and I can say it's an Int … of 2000. … And then I can do the same thing with the print line … and the type of. … So, Julia will assign an integer type … based on whether the system you are working on … is either 32 … or 64-bits. … Now, I could do the same thing with unsigned integers, … which cannot be negative. …
Author
Released
8/14/2019- Using the Julia REPL tool
- Differences between Julia and other languages
- Variables and data types
- Numbers in Julia
- Defining and operating on strings
- Using built-in functions in Julia
- Conditional statements
- Using array functions
- String processing
Skill Level Beginner
Duration
Views
Related Courses
-
Learning Python
with Joe Marini2h 27m Beginner -
Python Basics for Java Developers
with Deepa Muralidhar42m 53s Beginner -
Programming Foundations: Algorithms
with Joe Marini1h 45m Beginner
-
Introduction
-
What you should know1m 26s
-
1. Overview
-
Introduction to Julia1m 41s
-
The Julia REPL3m 56s
-
Building HelloWorld.jl5m 2s
-
-
2. Language Basics
-
Numbers in Julia5m 45s
-
Strings in Julia6m 40s
-
3. Language Features
-
Built-in functions5m 59s
-
Vectorization operator3m 50s
-
Data type casting4m 53s
-
-
4. Control Structures
-
Conditional statements4m 41s
-
Loops6m 58s
-
Functions7m 39s
-
Exception handling3m 20s
-
-
5. Data Structures
-
Arrays8m 12s
-
Tuples5m 30s
-
Sets6m 29s
-
Dictionaries5m 51s
-
-
6. Julia Features
-
Random numbers6m 13s
-
String processing6m 11s
-
Using the filesystem6m 36s
-
Dates and times6m 57s
-
Custom types4m 17s
-
Sorting data5m 38s
-
-
Conclusion
-
Next steps49s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Numbers in Julia