Data Types and Conversion#

array

Return a vector.

arrayVector

Convert value into an array vector by spliting it based on the elements in index.

bigarray

Big arrays are specially designed for advanced users in big data analysis.

bool

Convert the input to a Boolean value.

blob

Convert the data type of X to BLOB.

cast

Convert a data type to another; reshape a matrix, or convert between matrices and vectors.

ceil

Functions floor and ceil map a real number to the largest previous and the smallest following integer, respectively.

char

Convert the input to the data type of CHAR.

complex

Create a complex number X+Y*i.

date

Convert X into DATE type.

datehour

Convert X into DATEHOUR data type.

datetime

Convert X into DATETIME type.

decimal32

Convert the input values into DECIMAL32 type.

decimal64

Convert the input values into DECIMAL64.

decimal128

Convert the input values into DECIMAL128.

decimalFormat

Apply a specified format to the given object.

decimalMultiply

The function multiplies Decimals.

deg2rad

Convert angle units from degrees to radians for each element of X.

dict

Return a dictionary object.

double

Convert the input to the data type of DOUBLE.

duration

Convert X to DURATION type which indicates the length of a time interval.

enlist

If X is a scalar, returns a vector.

fixedLengthArrayVector

Concatenate vectors, matrices, and tables.

floor

The floor and ceil functions map a real number to the largest previous and the smallest following integer, respectively.

form

Generate the data form ID of a variable or a constant.

format

Apply a specified format to the given object.

fromJson

Converta a JSON string that complies with DolphinDB specification to a DolphinDB variable.

parseJsonTable

Parses JSON objects into an in-memory table.

hex

Convert data of INTEGRAL, FLOAT, COMPLEX, and BINARY types to hexadecimal and return a string.

highDouble

It returns the high-order 8-byte double data of X.

highLong

It returns the high-order 8-byte long integer data of X.

int

Convert X to the data type of INT.

int128

Convert STRING into INT128 data type.

ipaddr

Convert STRING into IPADDR (IP address) data type.

isOrderedDict

The function returns "true" if X is an ordered dictionary.

long

Convert the data type of X to LONG.

lowDouble

It returns the low-order 8-byte double data of X.

lowLong

It returns the low-order 8-byte long integer data of X.

makeKey

Combine the specified args as a BLOB scalar or vector, so it can used as the key(s) of a dictionary or a set.

makeSortedKey

Combine the specified args as a BLOB scalar or vector.

matrix

Generate a matrix.

minute

Return the corresponding minute(s).

month

Return the corresponding month(s).

nanotime

Convert the data type of X to NANOTIME.

nanotimestamp

Convert the data type of X to NANOTIMESTAMP.

pair

Return a data pair.

point

Generate a POINT type data to store the location of a midpoint in the coordinate system.

rad2deg

Convert angle units from radians to degrees for each element of X.