Datatypes
This topic is meant to document all Datatypes in Pile
Datatypes
Pile has a total of 5 datatypes:
Datatype | Description |
int | 64-bit Integer |
float | 64-bit float |
string | Array of UTF8 characters, unlimited size |
bool | true or false . Also known as 1-bit Integer. |
nil | Null type |
Literals
Here are some examples of literals in Pile:
Datatype | Literal |
int | e.g. 10 , 0 , -10 , 100 |
float | e.g. 10.5 , 10.0 , 0.0 , 0.5 |
string | e.g. "Hello, World!" , "This is a string" , "" , " " |
bool | true or false |
nil | nil |