Abstract data types are the ones that cannot be instantiated. They serve as the basic pillars of the type system in Julia. Or, in other words, other types inside Julia can inherit any one of these base types. Examples of abstract data types are Number
, Integer
, and Signed
.
Julia supports all the basic data types, along with the ability to add in new user-defined data types as well as composite types. The way they are prioritized is something that we will learn about in the next section when we read about subtypes and supertypes.
Before we begin talking about the different data types in detail, I want to share three simple functions that we will be using to know more about types:
typeof()
: This is used to tell the type of data being supplied to ittypemax()
: This is used to know the maximum value supported by the specific typetypemin()
: This is used to know the minimum value supported by the specific type
As we are now moving into a territory wherein our machine bits would start...