> For the complete documentation index, see [llms.txt](https://pretender.gitbook.io/beginners-scripting-guide-beta/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pretender.gitbook.io/beginners-scripting-guide-beta/basic-data-types.md).

# Basic Data Types

✏ Beginners Scripting Guide ✏

In this section, we will be discussing about basic data types. Data can be a **number**, **booleans**, **string**, and much more. But, today we will only learn about **number**, **booleans**, and **string** because those are the basic data types.

### NUMBER

The number data type consists of&#x20;

&#x20;                 **Integer**            : Negative, 0, and positive numbers.\
&#x20;                 **Float**               : Numbers with a decimal place.

#### NUMBER NOTATION

**Binary:**

* Format: `0b` followed by `1` or `0`
* Example: `0b10 = 2`

**Hexadecimal:**

* Format: `0x` followed by `0` to `9` or `A` (10) to `F` (16)
* Example: `0xA = 10`

**Exponential:**

* Format: Decimal number followed by `e` or `e+` then an integer which is the power of 10
* Example: `2e11 = 2 * 10^11`

**Decimal:**

* Format: Plain number from `0` to `9`
* Example: `10 = 10`

{% hint style="danger" %}
**Note**: Roblox doesn't support complex numbers.
{% endhint %}

### STRING

The **string** data type can be created by enclosing a group of characters by **"** or **'** and there are others way to do it. But, we will use **"** or **'** for today.\
\
**Example:** <mark style="color:yellow;">"Hello"</mark>, and <mark style="color:yellow;">'Hi'</mark>.

### BOOLEAN

Booleans are data types consists of <mark style="color:red;">**true**</mark> and <mark style="color:red;">**false**</mark><mark style="color:red;">.</mark> This is usually used in conditions for loops and if statements. We will cover the if statement and loops in upcoming topic.
