ThingsDB can store 64bit signed integer values. When assigning integer values
larger than 64bit, an overflow_err() will be returned. Other types can be
converted to int by using the int function.
The minimum and maximum are defined by the constants INT_MIN and INT_MAX.
| Base | Example | Description |
|---|---|---|
| 2 | 0b1111011 |
Binary notation starts with 0b (zero, lower case b), followed by binary digits (0-1). |
| 8 | 0o173 |
Octal notation starts with 0o (zero, lower case o), followed by octal digits (0-8). |
| 10 | 123 |
Decimal notation, numbers between zero and nine (0-9). |
| 16 | 0x7b |
Hexadecimal notation start with a 0x (zero, lower case x), followed by hexadecimal digits (0-9, a-f or A-F). |
This code creates a int property count to the root of a collection:
.count = 123;
| Function | Description |
|---|---|
| bit_count | Return the number of ones in the binary representation of the absolute value of the integer. |