Basic Data Types

These are the seven basic data types supported by Origo:

Data type Type Value range Default value
int 32-bit signed integer -2147483648 ..
+2147483647
0
byte 8-bit signed integer -128 .. +127 0
fixed 64-bit fixed point number
with 32-bit signed and
32-bit base 2 decimal part
-2147483648 ..
+2147483647
0
string 16 bit Unicode formatted string ""
bool A Boolean data type, using 8 bits of memory true, false false
char 16 bit Unicode character character code 0

Most cell phones and other handheld devices have a processor that does not support floating point instructions natively, so using floating point types on those devices is quite slow. Instead of a floating point type Origo has a fixed point type, which can be used for almost all the same purposes as a float type in other programming languages.

There are many methods for manipulating basic data types, including a math API.

For more details please refer to API documentation.