Paradigm | structured, imperative, procedural |
---|---|
Family | BASIC |
Designed by | Fantaisie Software |
Developer | Fantaisie Software |
First appeared | 1998 (AmigaOS) 2000 (Windows) |
Stable release | |
OS | cross-platform: Microsoft Windows, Linux, macOS(active) AmigaOS(discontinued, open source) |
License | commercial |
Filename extensions | .pb, .pbi, .pbf, .pbp, .pbv |
Website | www.purebasic.com |
Influenced by | |
BASIC |
Type | Suffix | Memory usage | Numerical range |
---|---|---|---|
Byte | b | 1 byte (8 bits) | −128 … +127 |
Ascii | a | 1 byte (8 bits) | 0 … +255 |
Character | c | 1 byte (8 bits) (ascii) | 0 … +255 |
Word | w | 2 bytes (16 bits) | −32768 … +32767 |
Unicode | u | 2 bytes (16 bits) | 0 … +65535 |
Character | c | 2 bytes (16 bits) (unicode) | 0 … +65535 |
Long | l | 4 bytes (32 bits) | −2147483648 … +2147483647 |
Integer | i | 4 bytes (32 bits) x86 | −2147483648 … +2147483647 |
Float | f | 4 bytes (32 bits) | Depending on the ratio of the decimal number. |
Integer | i | 8 bytes (64 bits) x64 | −9223372036854775808 … +9223372036854775807 |
Quad | q | 8 bytes (64 bits) | −9223372036854775808 … +9223372036854775807 |
Double | d | 8 bytes (64 bits) | Depending on the ratio of the decimal number. |
String | s | (String length + 1) * SizeOf(Character) | No limit. |
Fixed String | s{length} | (String length) * SizeOf(Character) | No limit. |
Dimvar_name.type_name(size1,size2,...)
, a linked list (List()var_name.type_name
), an associative array (in new versions of language) (Mapvar_name.type_name()
)