Skip to content

Integer Types

RayforceDB offers 4 types of different integers: U8, I16, I32 and I64

Signed 64-bit Integer

Scalar Type Code: -5. Scalar Internal Name: i64. Vector Type Code: 5. Vector Internal Name: I64

 (type 1) ;; Scalar
i64
 (type [1 2]) ;; Vector
I64

Signed 32-bit Integer

Scalar Type Code: -4. Scalar Internal Name: i32. Vector Type Code: 4. Vector Internal Name: I32

Doesn't occur naturally in data types, but can be explicitly casted

 (type (as 'i32 1)) ;; Scalar
i32
 (type (as 'I32 (list 1 2)))  ;; Vector
I32

Signed 16-bit Integer

Scalar Type Code: -3. Scalar Internal Name: i16. Vector Type Code: 3. Vector Internal Name: I16

Doesn't occur naturally in data types, but can be explicitly casted

 (type (as 'i16 1)) ;; Scalar
i16
 (type (as 'I16 (list 1 2))) ;; Vector
I16

Unsigned 8-bit Integer

Scalar Type Code: -2. Scalar Internal Name: u8. Vector Type Code: 2. Vector Internal Name: U8.

Doesn't occur naturally in data types, but can be explicitly casted

 (type (as 'u8 1)) ;; Scalar
u8
 (type (as 'U8 (list 1 2))) ;; Vector
U8